org.apache.xmlrpc

Class CommonsXmlRpcTransportFactory

public class CommonsXmlRpcTransportFactory extends Object implements XmlRpcTransportFactory

A transport factory, which uses the Jakarta Commons HttpClient.
Field Summary
Stringauth
IntegerconnectionTimeout
Integertimeout
URLurl
Constructor Summary
CommonsXmlRpcTransportFactory(URL pURL)
Creates a new instance with the given server URL.
Method Summary
XmlRpcTransportcreateTransport()
voidsetBasicAuthentication(String pAuth)
Sets Authentication for this client.
voidsetBasicAuthentication(String pUsername, String pPassword)
Sets Authentication for this client.
voidsetConnectionTimeout(int newConnectionTimeoutInMilliSeconds)
Sets the timeout until a connection is etablished.
voidsetProperty(String propertyName, Object value)
voidsetTimeout(int newTimeoutInMilliSeconds)
Sets the socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data.

Field Detail

auth

private String auth

connectionTimeout

private Integer connectionTimeout

timeout

private Integer timeout

url

private URL url

Constructor Detail

CommonsXmlRpcTransportFactory

public CommonsXmlRpcTransportFactory(URL pURL)
Creates a new instance with the given server URL.

Method Detail

createTransport

public XmlRpcTransport createTransport()

setBasicAuthentication

public void setBasicAuthentication(String pAuth)
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.

setBasicAuthentication

public void setBasicAuthentication(String pUsername, String pPassword)
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.

setConnectionTimeout

public void setConnectionTimeout(int newConnectionTimeoutInMilliSeconds)
Sets the timeout until a connection is etablished. A timeout value of zero \ means the timeout is not used. The default value is zero.

Parameters: newConnectionTimeoutInMilliSeconds timeout in milliseconds (ms)

See Also: org.apache.commons.httpclient.HttpClient#setConnectionTimeout

setProperty

public void setProperty(String propertyName, Object value)

setTimeout

public void setTimeout(int newTimeoutInMilliSeconds)
Sets the socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data. A timeout value of zero is interpreted as an infinite timeout.

Parameters: newTimeoutInMilliSeconds timeout in milliseconds (ms)

See Also: org.apache.commons.httpclient.HttpClient#setTimeout

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.