org.apache.xmlrpc
public class CommonsXmlRpcTransport extends Object implements XmlRpcTransport
Since: 2.0
Version: $Id: CommonsXmlRpcTransport.java 350039 2005-11-30 21:30:55 +0100 (Mi, 30 Nov 2005) jochen $
| Field Summary | |
|---|---|
| HttpClient | client |
| Credentials | creds |
| boolean | gzip |
| boolean | http11 |
| protected PostMethod | method |
| boolean | rgzip |
| URL | url |
| Header | userAgentHeader |
| Constructor Summary | |
|---|---|
| CommonsXmlRpcTransport(URL url, HttpClient client) Creates a new instance of CommonsXmlRpcTransport | |
| CommonsXmlRpcTransport(URL url) | |
| Method Summary | |
|---|---|
| void | endClientRequest()
Releases connection resources.
|
| InputStream | sendXmlRpc(byte[] request) |
| void | setBasicAuthentication(String user, String password)
Sets Authentication for this client, very basic for now user/password
|
| void | setBasicAuthentication(String auth)
Sets Authentication for this client.
|
| void | setConnectionTimeout(int ctimeout)
Sets the timeout until a connection is etablished. |
| void | setGzip(boolean gzip)
Transport make use of the 'Accept-Encoding: gzip', so compliant HTTP servers
could return HTTP reply compressed with gzip
|
| void | setHttp11(boolean http11)
Make use of HTTP 1.1
|
| void | setRGzip(boolean gzip)
Transport make use of the 'Content-Encoding: gzip' and send HTTP request
compressed with gzip : works only with some compliant HTTP servers like Apache 2.x
using SetInputFilter DEFLATE.
|
| void | setTimeout(int timeout)
Sets the socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data. |
| void | setUserAgent(String userAgent)
Set the UserAgent for this client
|
Throws: XmlRpcClientException
Parameters: user password
Parameters: auth the
Parameters: newTimeoutInMilliseconds Timeout in milliseconds.
See Also: HttpConnection#setConnectionTimeout(int)
Parameters: gzip Gzip compression will be used if gzip is true
Parameters: http11 HTTP 1.1 will be used if http11 is true
Parameters: gzip Compress request with gzip if gzip is true
Parameters: newTimeoutInMilliseconds Timeout in milliseconds
Parameters: userAgent