Public Member Functions | |
XmlRpcCommonsTransport (XmlRpcCommonsTransportFactory pFactory) | |
Protected Member Functions | |
void | close () throws XmlRpcClientException |
InputStream | getInputStream () throws XmlRpcException |
void | initHttpHeaders (XmlRpcRequest pRequest) throws XmlRpcClientException |
boolean | isRedirectRequired () |
boolean | isResponseGzipCompressed () |
boolean | isResponseGzipCompressed (XmlRpcStreamRequestConfig pConfig) |
HttpClient | newHttpClient () |
PostMethod | newPostMethod (XmlRpcHttpClientConfig pConfig) |
void | resetClientForRedirect () throws XmlRpcException |
void | setContentLength (int pLength) |
void | setCredentials (XmlRpcHttpClientConfig pConfig) throws XmlRpcClientException |
void | setRequestHeader (String pHeader, String pValue) |
void | writeRequest (final ReqWriter pWriter) throws XmlRpcException |
Protected Attributes | |
final HttpClient | client |
PostMethod | method |
Private Member Functions | |
void | checkStatus (HttpMethod pMethod) throws XmlRpcHttpTransportException |
Private Attributes | |
XmlRpcHttpClientConfig | config |
int | contentLength = -1 |
Static Private Attributes | |
static final int | MAX_REDIRECT_ATTEMPTS = 100 |
static final String | userAgent = " (Jakarta Commons httpclient Transport)" |
An HTTP transport factory, which is based on the Jakarta Commons HTTP Client.
Definition at line 53 of file XmlRpcCommonsTransport.java.
org.apache.xmlrpc.client.XmlRpcCommonsTransport.XmlRpcCommonsTransport | ( | XmlRpcCommonsTransportFactory | pFactory | ) | [inline] |
Creates a new instance.
pFactory | The factory, which created this transport. |
Definition at line 68 of file XmlRpcCommonsTransport.java.
void org.apache.xmlrpc.client.XmlRpcCommonsTransport.checkStatus | ( | HttpMethod | pMethod | ) | throws XmlRpcHttpTransportException [inline, private] |
Check the status of the HTTP request and throw an XmlRpcHttpTransportException if it indicates that there is an error.
pMethod | the method that has been executed |
XmlRpcHttpTransportException | if the status of the method indicates that there is an error. |
Definition at line 254 of file XmlRpcCommonsTransport.java.
void org.apache.xmlrpc.client.XmlRpcCommonsTransport.close | ( | ) | throws XmlRpcClientException [inline, protected, virtual] |
Closes the connection and ensures, that all resources are being released.
Implements org.apache.xmlrpc.client.XmlRpcStreamTransport.
Definition at line 142 of file XmlRpcCommonsTransport.java.
InputStream org.apache.xmlrpc.client.XmlRpcCommonsTransport.getInputStream | ( | ) | throws XmlRpcException [inline, protected, virtual] |
Returns the input stream, from which the response is being read.
Implements org.apache.xmlrpc.client.XmlRpcStreamTransport.
Definition at line 116 of file XmlRpcCommonsTransport.java.
void org.apache.xmlrpc.client.XmlRpcCommonsTransport.initHttpHeaders | ( | XmlRpcRequest | pRequest | ) | throws XmlRpcClientException [inline, protected] |
Reimplemented from org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 85 of file XmlRpcCommonsTransport.java.
boolean org.apache.xmlrpc.client.XmlRpcCommonsTransport.isRedirectRequired | ( | ) | [inline, protected] |
Definition at line 155 of file XmlRpcCommonsTransport.java.
boolean org.apache.xmlrpc.client.XmlRpcCommonsTransport.isResponseGzipCompressed | ( | ) | [inline, protected] |
Definition at line 107 of file XmlRpcCommonsTransport.java.
boolean org.apache.xmlrpc.client.XmlRpcCommonsTransport.isResponseGzipCompressed | ( | XmlRpcStreamRequestConfig | pConfig | ) | [inline, protected, virtual] |
Returns, whether the response is gzip compressed.
pConfig | The clients configuration. |
Implements org.apache.xmlrpc.client.XmlRpcStreamTransport.
Definition at line 146 of file XmlRpcCommonsTransport.java.
HttpClient org.apache.xmlrpc.client.XmlRpcCommonsTransport.newHttpClient | ( | ) | [inline, protected] |
Definition at line 81 of file XmlRpcCommonsTransport.java.
PostMethod org.apache.xmlrpc.client.XmlRpcCommonsTransport.newPostMethod | ( | XmlRpcHttpClientConfig | pConfig | ) | [inline, protected] |
Definition at line 99 of file XmlRpcCommonsTransport.java.
void org.apache.xmlrpc.client.XmlRpcCommonsTransport.resetClientForRedirect | ( | ) | throws XmlRpcException [inline, protected] |
Definition at line 167 of file XmlRpcCommonsTransport.java.
void org.apache.xmlrpc.client.XmlRpcCommonsTransport.setContentLength | ( | int | pLength | ) | [inline, protected] |
Reimplemented from org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 77 of file XmlRpcCommonsTransport.java.
void org.apache.xmlrpc.client.XmlRpcCommonsTransport.setCredentials | ( | XmlRpcHttpClientConfig | pConfig | ) | throws XmlRpcClientException [inline, protected] |
Reimplemented from org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 127 of file XmlRpcCommonsTransport.java.
void org.apache.xmlrpc.client.XmlRpcCommonsTransport.setRequestHeader | ( | String | pHeader, |
String | pValue | ||
) | [inline, protected, virtual] |
Implements org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 103 of file XmlRpcCommonsTransport.java.
void org.apache.xmlrpc.client.XmlRpcCommonsTransport.writeRequest | ( | final ReqWriter | pWriter | ) | throws XmlRpcException [inline, protected] |
Definition at line 191 of file XmlRpcCommonsTransport.java.
final HttpClient org.apache.xmlrpc.client.XmlRpcCommonsTransport.client [protected] |
Reimplemented from org.apache.xmlrpc.client.XmlRpcTransportImpl.
Definition at line 59 of file XmlRpcCommonsTransport.java.
Definition at line 63 of file XmlRpcCommonsTransport.java.
int org.apache.xmlrpc.client.XmlRpcCommonsTransport.contentLength = -1 [private] |
Definition at line 62 of file XmlRpcCommonsTransport.java.
final int org.apache.xmlrpc.client.XmlRpcCommonsTransport.MAX_REDIRECT_ATTEMPTS = 100 [static, private] |
Maximum number of allowed redirects.
Definition at line 57 of file XmlRpcCommonsTransport.java.
PostMethod org.apache.xmlrpc.client.XmlRpcCommonsTransport.method [protected] |
Definition at line 61 of file XmlRpcCommonsTransport.java.
final String org.apache.xmlrpc.client.XmlRpcCommonsTransport.userAgent = " (Jakarta Commons httpclient Transport)" [static, private] |
Reimplemented from org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 60 of file XmlRpcCommonsTransport.java.