org.apache.xmlrpc.client
Class XmlRpcCommonsTransportFactory
- XmlRpcTransportFactory
public class XmlRpcCommonsTransportFactory
An HTTP transport factory, which is based on the Jakarta Commons
HTTP Client.
XmlRpcCommonsTransportFactory
public XmlRpcCommonsTransportFactory(XmlRpcClient pClient)
Creates a new instance.
pClient
- The client, which is controlling the factory.
getHttpClient
public HttpClient getHttpClient()
Returns the factories
HttpClient
. By default, a new instance
of
HttpClient
is created for any request.
Reusing the
HttpClient
is 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 of
HttpClient
,
give it to the factory, and use
HttpClient.getState()
to
read or set cookies.
setHttpClient
public void setHttpClient(HttpClient pHttpClient)
Sets the factories
HttpClient
. By default, a new instance
of
HttpClient
is created for any request.
Reusing the
HttpClient
is 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 of
HttpClient
,
give it to the factory, and use
HttpClient.getState()
to
read or set cookies.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.