|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pushtotest.tool.protocolhandler.SOAPBody
public class SOAPBody
This is an implementation of the Body interface for the SOAP Protocol.
| Constructor Summary | |
|---|---|
SOAPBody()
|
|
| Method Summary | |
|---|---|
void |
addHeaders(java.net.HttpURLConnection con)
Not needed in this context |
void |
addParameter(java.lang.String name,
java.lang.Class classtype,
java.lang.Object arg,
java.lang.String encoding)
Adds any kind of parameter to the parameter list for this SOAP call |
void |
addParameter(java.lang.String name,
java.lang.Object arg,
java.lang.String encoding)
Adds a new child to the call document containing the name/value pairs. |
void |
addParameter(java.lang.String name,
java.lang.String value)
Adds a new child to the call document containing the name/value pair |
java.lang.String |
getBody()
Not needed in this context |
org.jdom.Document |
getDocument()
Returns an XML document, if one was previously set otherwise returns null. |
org.jdom.Document |
getJDOMDocument()
Returns an XML document in org.jdom.Document object form if one was previously set otherwise returns null. |
java.lang.String |
getMethod()
Returns the method name that is set on this object. |
java.util.Vector |
getParams()
Returns the Parameters for this SOAP object. |
java.lang.String |
getSOAPEncoding()
Returns the SOAP envelope encoding style. |
java.lang.String |
getTarget()
Returns the target URI that is set for this call. |
java.lang.String |
getXMLDocument()
Returns an XML document in a String, if one was previously set otherwise returns null. |
java.lang.String |
id()
Returns an id for this protocol. |
boolean |
isDocStyle()
Returns true if a document was set using setDocument() |
void |
setDocument(org.jdom.Document thedoc)
Takes an entire XML request document stored in a JDOM Document object for this SOAP call. |
void |
setDocument(java.lang.String thedoc)
Takes an entire XML request document stored in a string for this SOAP call. |
void |
setMethod(java.lang.String method)
Sets the method to call on the remote SOAP object. |
void |
setSOAPEncoding(java.lang.String encoding)
Sets the SOAP envelope encoding style for a SOAP document-style encoded request. |
void |
setTarget(java.lang.String target)
Sets the target URI for this SOAP call. |
java.lang.String |
toString()
Returns the content of the body to be used by the Protocol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SOAPBody()
| Method Detail |
|---|
public java.lang.String id()
id in interface Bodypublic java.lang.String toString()
toString in class java.lang.Object
public void addParameter(java.lang.String name,
java.lang.String value)
addParameter in interface Bodyname - The name of the parametervalue - The string value of the parameter.
public void addParameter(java.lang.String name,
java.lang.Object arg,
java.lang.String encoding)
name - The name of the parameterarg - The argument itself.encoding - Any encoding needed - probably null.
public void addParameter(java.lang.String name,
java.lang.Class classtype,
java.lang.Object arg,
java.lang.String encoding)
name - The name of the parameterclasstype - The type of the paramater argument.arg - The argument itself.encoding - Any encoding needed - probably null.public void setDocument(org.jdom.Document thedoc)
org.jdom.Document - documentpublic void setDocument(java.lang.String thedoc)
public org.jdom.Document getDocument()
public org.jdom.Document getJDOMDocument()
public java.lang.String getXMLDocument()
public boolean isDocStyle()
public java.util.Vector getParams()
public void setMethod(java.lang.String method)
method - The method name.public java.lang.String getMethod()
public void setTarget(java.lang.String target)
urn:SomeThing
target - The Target URI to set.public java.lang.String getTarget()
public void setSOAPEncoding(java.lang.String encoding)
public java.lang.String getSOAPEncoding()
public java.lang.String getBody()
throws ToolException
getBody in interface BodyToolExceptionpublic void addHeaders(java.net.HttpURLConnection con)
addHeaders in interface Bodycon - The HttpURLConnection object that will communicate with the host using HTTP protocols
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||