|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pushtotest.tool.protocolhandler.ProtocolWrapper
com.pushtotest.tool.protocolhandler.SOAPProtocol
public class SOAPProtocol
This is the Protocol implementation to deal with the SOAP protocol. We will probably piggy back of the HTTPProtocol object since SOAP is most often over HTTP, but we will probably want to look into doing SOAP calls over HTTPS too.
| Field Summary |
|---|
| Fields inherited from class com.pushtotest.tool.protocolhandler.ProtocolWrapper |
|---|
body, errno, header, host, name, pass, path, port, proxyHost, proxyPass, proxyPort, proxyUser, query, response, running, scheme, timeout, type, url |
| Fields inherited from interface com.pushtotest.tool.protocolhandler.Protocol |
|---|
IOERROR, NOERROR, NOTREADY, OTHER, TIMEOUT |
| Constructor Summary | |
|---|---|
SOAPProtocol()
Creates a new instance of the SOAPProtocol. |
|
| Method Summary | |
|---|---|
Response |
connect()
Calling this method actually causes the connection to be made. |
java.lang.String |
id()
Returns an id for this protocol. |
void |
send()
Calling this method actually causes the connection to be made. |
void |
setActionURI(java.lang.String uri)
Set the actionURI header value. |
void |
setEncoding(java.lang.String enc)
Sets the SOAP request encoding type. |
void |
setMapTypes(java.lang.String enc,
org.apache.soap.util.xml.QName qname,
java.lang.Class klass,
org.apache.soap.util.xml.Serializer ser,
org.apache.soap.util.xml.Deserializer des)
This is a convenience method to allow access to the Apache SOAP 2.2 XMLJavaMappingRegistry method mapTypes. |
boolean |
supports(java.lang.String id)
Tests to see if this protocol will support a specific type. |
| Methods inherited from class com.pushtotest.tool.protocolhandler.ProtocolWrapper |
|---|
getBody, getErrno, getHost, getPassword, getResponse, getTimeout, getUrl, getUrl, getURL, getUsername, isRunning, parseUrl, run, setBody, setErrno, setHeader, setHost, setPassword, setPath, setPort, setProxyHost, setProxyPass, setProxyPort, setProxyUser, setQueryString, setScheme, setTimeout, setType, setUrl, setUsername, supportsBody, supportsHeader, supportsResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SOAPProtocol()
| Method Detail |
|---|
public java.lang.String id()
id in interface Protocolid in class ProtocolWrapperpublic void setActionURI(java.lang.String uri)
uri - The Aaction URI for this SOAP Call.public boolean supports(java.lang.String id)
supports in class ProtocolWrapperid - The string id to test.
public void setMapTypes(java.lang.String enc,
org.apache.soap.util.xml.QName qname,
java.lang.Class klass,
org.apache.soap.util.xml.Serializer ser,
org.apache.soap.util.xml.Deserializer des)
enc - Encoding style.qname - Fully qualified name of XML element typeklass - The Class of the object.ser - The serializerdes - The deserializer.public void setEncoding(java.lang.String enc)
enc - type (for example, Constants.NS_URI_LITERAL_XML,
NS_URI_SOAP_ENC (default)
public Response connect()
throws NotReadyException,
NoSuchClassException,
ToolException,
java.io.IOException
connect in interface Protocolconnect in class ProtocolWrapperNotReadyException - If the
connect is called without all of the proper pieces set that it
needs to connect to the given protocol.
NoSuchClassException - If a timeout was set
and that timeout is reached before the connection is
completed.
ToolException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!public void send()
ProtocolWrapper
send in class ProtocolWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||