|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pushtotest.tool.protocolhandler.XMLRPCBody
public class XMLRPCBody
This is an implementation of the Body interface for the XMLRPC Protocol.
| Constructor Summary | |
|---|---|
XMLRPCBody()
|
|
| Method Summary | |
|---|---|
void |
addHeaders(java.net.HttpURLConnection con)
Not needed in this context |
void |
addParameter(java.lang.String arg)
Adds a String parameter to the parameter list for this XMLRPC call |
void |
addParameter(java.lang.String name,
java.lang.String value)
Adds a new child to the call document containing the name/value pair, this ignores the name and stores the value. |
java.lang.String |
getBody()
Not needed in this context |
java.lang.String |
getMethod()
Returns the method on the host to be called. |
java.util.Vector |
getParams()
Returns the Parameters for this SOAP object. |
java.lang.String |
getTarget()
Retunrs the target URI that is set for this call. |
java.lang.String |
getTransport()
Returns the transport to be used. |
java.lang.String |
id()
Returns an id for this protocol. |
void |
setMethod(java.lang.String method)
Sets the method that will be called on the host. |
void |
setTarget(java.lang.String target)
Sets the target URI for this XMLRPC call. |
void |
setTransport(java.lang.String transport)
Sets the transport to be used. |
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 XMLRPCBody()
| Method Detail |
|---|
public java.lang.String id()
.:// would be appropriate (without the "://")
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)
new Parameter( "arg1", double.class, new Double (arg1), null )
addParameter in interface Bodyname - The parameter namevalue - The parameter value.public void addParameter(java.lang.String arg)
arg - The parameter itself.public java.util.Vector getParams()
public void setTarget(java.lang.String target)
target - The Target URI to set.public java.lang.String getTarget()
public void setMethod(java.lang.String method)
target - The Target URI to set.public java.lang.String getMethod()
public void setTransport(java.lang.String transport)
target - The Target URI to set.public java.lang.String getTransport()
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 | |||||||||