public class CommonsXmlRpcTransportFactory extends java.lang.Object implements XmlRpcTransportFactory
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
auth |
private java.lang.Integer |
connectionTimeout |
private java.lang.Integer |
timeout |
private java.net.URL |
url |
CONSTRUCTOR_SIGNATURE, CONSTRUCTOR_SIGNATURE_STRING, TRANSPORT_AUTH, TRANSPORT_URL
Constructor and Description |
---|
CommonsXmlRpcTransportFactory(java.net.URL pURL)
Creates a new instance with the given server URL.
|
Modifier and Type | Method and Description |
---|---|
XmlRpcTransport |
createTransport()
Create a new XML-RPC transport.
|
void |
setBasicAuthentication(java.lang.String pAuth)
Sets Authentication for this client.
|
void |
setBasicAuthentication(java.lang.String pUsername,
java.lang.String pPassword)
Sets Authentication for this client.
|
void |
setConnectionTimeout(int newConnectionTimeoutInMilliSeconds)
Sets the timeout until a connection is etablished.
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Set a property for all newly created transports.
|
void |
setTimeout(int newTimeoutInMilliSeconds)
Sets the socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data.
|
private java.net.URL url
private java.lang.String auth
private java.lang.Integer timeout
private java.lang.Integer connectionTimeout
public CommonsXmlRpcTransportFactory(java.net.URL pURL)
public XmlRpcTransport createTransport() throws XmlRpcClientException
XmlRpcTransportFactory
createTransport
in interface XmlRpcTransportFactory
XmlRpcClientException
public void setBasicAuthentication(java.lang.String pAuth)
public void setBasicAuthentication(java.lang.String pUsername, java.lang.String pPassword)
public void setTimeout(int newTimeoutInMilliSeconds)
newTimeoutInMilliSeconds
- timeout in milliseconds (ms)org.apache.commons.httpclient.HttpClient#setTimeout
public void setConnectionTimeout(int newConnectionTimeoutInMilliSeconds)
newConnectionTimeoutInMilliSeconds
- timeout in milliseconds (ms)org.apache.commons.httpclient.HttpClient#setConnectionTimeout
public void setProperty(java.lang.String propertyName, java.lang.Object value)
XmlRpcTransportFactory
setProperty
in interface XmlRpcTransportFactory
propertyName
- the property to set.value
- the value to set it to.Copyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.