org.apache.xmlrpc
Class DefaultXmlRpcTransport
java.lang.Object
org.apache.xmlrpc.DefaultXmlRpcTransport
- XmlRpcTransport
public class DefaultXmlRpcTransport
extends java.lang.Object
Interface from XML-RPC to the default HTTP transport based on the
$Id: DefaultXmlRpcTransport.java 233919 2005-04-22 10:26:17Z hgomez $protected String | auth
|
protected URLConnection | con
|
protected URL | url
|
auth
protected String auth
con
protected URLConnection con
DefaultXmlRpcTransport
public DefaultXmlRpcTransport(URL url)
Create a new DefaultXmlRpcTransport with the specified URL.
url
- the url to POST XML-RPC requests to.
DefaultXmlRpcTransport
public DefaultXmlRpcTransport(URL url,
String auth)
Use setBasicAuthentication instead of passing an encoded authentication String.
Create a new DefaultXmlRpcTransport with the specified URL and basic
authorization string.
url
- the url to POST XML-RPC requests to.auth
- the Base64 encoded HTTP Basic authentication value.
endClientRequest
public void endClientRequest()
throws XmlRpcClientException
End an XML-RPC request. This method is called by the XmlRpcClient when then
request has been sent and the response (or an exception) recieved.
- endClientRequest in interface XmlRpcTransport
sendXmlRpc
public InputStream sendXmlRpc(byte[] request)
throws IOException
Send an XML-RPC message. This method is called to send a message to the
other party.
- sendXmlRpc in interface XmlRpcTransport
request
- the request in network encoding.
setBasicAuthentication
public void setBasicAuthentication(String user,
String password)
Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.