|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlrpc.DefaultXmlRpcTransport
public class DefaultXmlRpcTransport
Interface from XML-RPC to the default HTTP transport based on the
class.| Field Summary | |
|---|---|
protected java.lang.String |
auth
|
protected java.net.URLConnection |
con
|
protected java.net.URL |
url
|
| Constructor Summary | |
|---|---|
DefaultXmlRpcTransport(java.net.URL url)
Create a new DefaultXmlRpcTransport with the specified URL. |
|
DefaultXmlRpcTransport(java.net.URL url,
java.lang.String auth)
Deprecated. Use setBasicAuthentication instead of passing an encoded authentication String. |
|
| Method Summary | |
|---|---|
void |
endClientRequest()
End an XML-RPC request. |
java.io.InputStream |
sendXmlRpc(byte[] request)
Send an XML-RPC message. |
void |
setBasicAuthentication(java.lang.String user,
java.lang.String password)
Sets Authentication for this client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.net.URL url
protected java.lang.String auth
protected java.net.URLConnection con
| Constructor Detail |
|---|
public DefaultXmlRpcTransport(java.net.URL url,
java.lang.String auth)
url - the url to POST XML-RPC requests to.auth - the Base64 encoded HTTP Basic authentication value.public DefaultXmlRpcTransport(java.net.URL url)
url - the url to POST XML-RPC requests to.| Method Detail |
|---|
public java.io.InputStream sendXmlRpc(byte[] request)
throws java.io.IOException
XmlRpcTransport
sendXmlRpc in interface XmlRpcTransportrequest - the request in network encoding.
java.io.IOException - if an IOException occurs in the IO level of the transport.
public void setBasicAuthentication(java.lang.String user,
java.lang.String password)
public void endClientRequest()
throws XmlRpcClientException
XmlRpcTransport
endClientRequest in interface XmlRpcTransportXmlRpcClientException - if an exception occurs in the transport.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||