public class DefaultXmlRpcTransport extends java.lang.Object implements XmlRpcTransport
class.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
auth |
protected java.net.URLConnection |
con |
protected java.net.URL |
url |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected java.net.URL url
protected java.lang.String auth
protected java.net.URLConnection con
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.public java.io.InputStream sendXmlRpc(byte[] request)
throws java.io.IOException
XmlRpcTransportsendXmlRpc 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
XmlRpcTransportendClientRequest in interface XmlRpcTransportXmlRpcClientException - if an exception occurs in the transport.Copyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.