public class DefaultXmlRpcTransportFactory extends java.lang.Object implements XmlRpcTransportFactory
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
auth |
static java.lang.String |
DEFAULT_HTTPS_PROVIDER |
protected XmlRpcTransportFactory |
httpsTransportFactory |
private static java.util.Hashtable |
transports |
protected java.net.URL |
url |
CONSTRUCTOR_SIGNATURE, CONSTRUCTOR_SIGNATURE_STRING, TRANSPORT_AUTH, TRANSPORT_URL| Constructor and Description |
|---|
DefaultXmlRpcTransportFactory(java.net.URL url) |
DefaultXmlRpcTransportFactory(java.net.URL url,
java.lang.String auth)
Deprecated.
use setBasicAuthentication method instead
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected java.net.URL url
protected java.lang.String auth
protected XmlRpcTransportFactory httpsTransportFactory
public static final java.lang.String DEFAULT_HTTPS_PROVIDER
private static java.util.Hashtable transports
public DefaultXmlRpcTransportFactory(java.net.URL url)
public DefaultXmlRpcTransportFactory(java.net.URL url,
java.lang.String auth)
public void setHTTPSTransport(java.lang.String transport,
java.util.Properties properties)
throws XmlRpcClientException
XmlRpcClientExceptionpublic static XmlRpcTransportFactory createTransportFactory(java.lang.String transport, java.util.Properties properties) throws XmlRpcClientException
XmlRpcClientExceptionpublic XmlRpcTransport createTransport() throws XmlRpcClientException
XmlRpcTransportFactorycreateTransport in interface XmlRpcTransportFactoryXmlRpcClientExceptionpublic void setBasicAuthentication(java.lang.String user,
java.lang.String password)
public void setProperty(java.lang.String propertyName,
java.lang.Object value)
XmlRpcTransportFactorysetProperty in interface XmlRpcTransportFactorypropertyName - the property to set.value - the value to set it to.Copyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.