org.apache.xmlrpc
Class TCDefaultXmlRpcTransport

java.lang.Object
  extended by org.apache.xmlrpc.TCDefaultXmlRpcTransport
All Implemented Interfaces:
org.apache.xmlrpc.XmlRpcTransport

public class TCDefaultXmlRpcTransport
extends java.lang.Object
implements org.apache.xmlrpc.XmlRpcTransport

Interface from XML-RPC to the default HTTP transport based on the

Since:
1.2
Author:
Hannes Wallnoefer, Andrew Evers, Ryan Hoegg

Field Summary
protected  java.lang.String auth
           
protected  java.net.URLConnection con
           
protected  java.net.URL url
           
protected  java.lang.String userAgent
           
 
Constructor Summary
TCDefaultXmlRpcTransport(java.net.URL url, java.lang.String userAgent)
          Create a new DefaultXmlRpcTransport with the specified URL.
 
Method Summary
 void endClientRequest()
           
 java.io.InputStream sendXmlRpc(byte[] request)
           
 void setBasicAuthentication(java.lang.String user, java.lang.String password)
          Sets Authentication for this client.
 void setTimeout(int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

protected java.net.URL url

userAgent

protected java.lang.String userAgent

auth

protected java.lang.String auth

con

protected java.net.URLConnection con
Constructor Detail

TCDefaultXmlRpcTransport

public TCDefaultXmlRpcTransport(java.net.URL url,
                                java.lang.String userAgent)
Create a new DefaultXmlRpcTransport with the specified URL.

Parameters:
url - the url to POST XML-RPC requests to.
Method Detail

sendXmlRpc

public java.io.InputStream sendXmlRpc(byte[] request)
                               throws java.io.IOException
Specified by:
sendXmlRpc in interface org.apache.xmlrpc.XmlRpcTransport
Throws:
java.io.IOException

setBasicAuthentication

public void setBasicAuthentication(java.lang.String user,
                                   java.lang.String password)
Sets Authentication for this client. This will be sent as Basic Authentication header to the server as described in http://www.ietf.org/rfc/rfc2617.txt.


endClientRequest

public void endClientRequest()
                      throws org.apache.xmlrpc.XmlRpcClientException
Specified by:
endClientRequest in interface org.apache.xmlrpc.XmlRpcTransport
Throws:
org.apache.xmlrpc.XmlRpcClientException

setTimeout

public void setTimeout(int timeout)