|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory
public class XmlRpcCommonsTransportFactory
An HTTP transport factory, which is based on the Jakarta Commons HTTP Client.
Constructor Summary | |
---|---|
XmlRpcCommonsTransportFactory(XmlRpcClient pClient)
Creates a new instance. |
Method Summary | |
---|---|
org.apache.commons.httpclient.HttpClient |
getHttpClient()
Returns the factories HttpClient . |
XmlRpcTransport |
getTransport()
Returns an instance of XmlRpcTransport . |
void |
setHttpClient(org.apache.commons.httpclient.HttpClient pHttpClient)
Sets the factories HttpClient . |
Methods inherited from class org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl |
---|
getClient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcCommonsTransportFactory(XmlRpcClient pClient)
pClient
- The client, which is controlling the factory.Method Detail |
---|
public XmlRpcTransport getTransport()
XmlRpcTransportFactory
XmlRpcTransport
. This may
be a singleton, but the caller should not depend on that:
A new instance may as well be created for any request.
public void setHttpClient(org.apache.commons.httpclient.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.
public org.apache.commons.httpclient.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |