Public Member Functions | |
HttpClient | getHttpClient () |
XmlRpcTransport | getTransport () |
void | setHttpClient (HttpClient pHttpClient) |
XmlRpcCommonsTransportFactory (XmlRpcClient pClient) | |
Private Attributes | |
HttpClient | httpClient |
An HTTP transport factory, which is based on the Jakarta Commons HTTP Client.
Definition at line 27 of file XmlRpcCommonsTransportFactory.java.
org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory.XmlRpcCommonsTransportFactory | ( | XmlRpcClient | pClient | ) | [inline] |
Creates a new instance.
pClient | The client, which is controlling the factory. |
Definition at line 33 of file XmlRpcCommonsTransportFactory.java.
HttpClient org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory.getHttpClient | ( | ) | [inline] |
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.
Definition at line 63 of file XmlRpcCommonsTransportFactory.java.
Returns an instance of 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.
Implements org.apache.xmlrpc.client.XmlRpcTransportFactory.
Definition at line 37 of file XmlRpcCommonsTransportFactory.java.
void org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory.setHttpClient | ( | HttpClient | pHttpClient | ) | [inline] |
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.
Definition at line 50 of file XmlRpcCommonsTransportFactory.java.
HttpClient org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory.httpClient [private] |
Definition at line 28 of file XmlRpcCommonsTransportFactory.java.