Class XmlRpcCommonsTransportFactory
- java.lang.Object
-
- org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl
-
- org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory
-
- All Implemented Interfaces:
XmlRpcTransportFactory
public class XmlRpcCommonsTransportFactory extends XmlRpcTransportFactoryImpl
An HTTP transport factory, which is based on the Jakarta Commons HTTP Client.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.commons.httpclient.HttpClienthttpClient
-
Constructor Summary
Constructors Constructor Description XmlRpcCommonsTransportFactory(XmlRpcClient pClient)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.httpclient.HttpClientgetHttpClient()Returns the factoriesHttpClient.XmlRpcTransportgetTransport()Returns an instance ofXmlRpcTransport.voidsetHttpClient(org.apache.commons.httpclient.HttpClient pHttpClient)Sets the factoriesHttpClient.-
Methods inherited from class org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl
getClient
-
-
-
-
Constructor Detail
-
XmlRpcCommonsTransportFactory
public XmlRpcCommonsTransportFactory(XmlRpcClient pClient)
Creates a new instance.- Parameters:
pClient- The client, which is controlling the factory.
-
-
Method Detail
-
getTransport
public XmlRpcTransport getTransport()
Description copied from interface:XmlRpcTransportFactoryReturns an instance ofXmlRpcTransport. This may be a singleton, but the caller should not depend on that: A new instance may as well be created for any request.- Returns:
- The configured transport.
-
setHttpClient
public void setHttpClient(org.apache.commons.httpclient.HttpClient pHttpClient)
Sets the factories
HttpClient. By default, a new instance ofHttpClientis created for any request.Reusing the
HttpClientis required, if you want to preserve some state between requests. This applies, in particular, if you want to use cookies: In that case, create an instance ofHttpClient, give it to the factory, and useHttpClient.getState()to read or set cookies.
-
getHttpClient
public org.apache.commons.httpclient.HttpClient getHttpClient()
Returns the factories
HttpClient. By default, a new instance ofHttpClientis created for any request.Reusing the
HttpClientis required, if you want to preserve some state between requests. This applies, in particular, if you want to use cookies: In that case, create an instance ofHttpClient, give it to the factory, and useHttpClient.getState()to read or set cookies.
-
-