org.apache.xmlrpc
Class DefaultXmlRpcTransportFactory

java.lang.Object
  extended by org.apache.xmlrpc.DefaultXmlRpcTransportFactory
All Implemented Interfaces:
XmlRpcTransportFactory

public class DefaultXmlRpcTransportFactory
extends java.lang.Object
implements XmlRpcTransportFactory

Default XML-RPC transport factory, produces HTTP, HTTPS with SSL or TLS based on URI protocol.

Since:
1.2
Version:
$Id: DefaultXmlRpcTransportFactory.html 359531 2005-12-28 13:59:25Z jochen $
Author:
Larry Meader, Chris Jackson, Andrew Evers

Field Summary
protected  java.lang.String auth
           
static java.lang.String DEFAULT_HTTPS_PROVIDER
           
protected  XmlRpcTransportFactory httpsTransportFactory
           
protected  java.net.URL url
           
 
Fields inherited from interface org.apache.xmlrpc.XmlRpcTransportFactory
CONSTRUCTOR_SIGNATURE, CONSTRUCTOR_SIGNATURE_STRING, TRANSPORT_AUTH, TRANSPORT_URL
 
Constructor Summary
DefaultXmlRpcTransportFactory(java.net.URL url)
           
DefaultXmlRpcTransportFactory(java.net.URL url, java.lang.String auth)
          Deprecated. use setBasicAuthentication method instead
 
Method Summary
 XmlRpcTransport createTransport()
          Create a new XML-RPC transport.
static XmlRpcTransportFactory createTransportFactory(java.lang.String transport, java.util.Properties properties)
           
 void setBasicAuthentication(java.lang.String user, java.lang.String password)
          Sets Authentication for this client.
 void setHTTPSTransport(java.lang.String transport, java.util.Properties properties)
           
 void setProperty(java.lang.String propertyName, java.lang.Object value)
          Set a property for all newly created transports.
 
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

auth

protected java.lang.String auth

httpsTransportFactory

protected XmlRpcTransportFactory httpsTransportFactory

DEFAULT_HTTPS_PROVIDER

public static final java.lang.String DEFAULT_HTTPS_PROVIDER
See Also:
Constant Field Values
Constructor Detail

DefaultXmlRpcTransportFactory

public DefaultXmlRpcTransportFactory(java.net.URL url)

DefaultXmlRpcTransportFactory

public DefaultXmlRpcTransportFactory(java.net.URL url,
                                     java.lang.String auth)
Deprecated. use setBasicAuthentication method instead

Contructor taking a Base64 encoded Basic Authentication string.

Method Detail

setHTTPSTransport

public void setHTTPSTransport(java.lang.String transport,
                              java.util.Properties properties)
                       throws XmlRpcClientException
Throws:
XmlRpcClientException

createTransportFactory

public static XmlRpcTransportFactory createTransportFactory(java.lang.String transport,
                                                            java.util.Properties properties)
                                                     throws XmlRpcClientException
Throws:
XmlRpcClientException

createTransport

public XmlRpcTransport createTransport()
                                throws XmlRpcClientException
Description copied from interface: XmlRpcTransportFactory
Create a new XML-RPC transport.

Specified by:
createTransport in interface XmlRpcTransportFactory
Returns:
XmlRpcTransport an instance created according to the rules specified to the constructor.
Throws:
XmlRpcClientException

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.


setProperty

public void setProperty(java.lang.String propertyName,
                        java.lang.Object value)
Description copied from interface: XmlRpcTransportFactory
Set a property for all newly created transports.

Specified by:
setProperty in interface XmlRpcTransportFactory
Parameters:
propertyName - the property to set.
value - the value to set it to.


Copyright 2001-2001-2005 Apache Software Foundation. All Rights Reserved.