Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes
org.apache.xmlrpc.client.XmlRpcCommonsTransport Class Reference
Inheritance diagram for org.apache.xmlrpc.client.XmlRpcCommonsTransport:
Inheritance graph
[legend]

List of all members.

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)"

Detailed Description

An HTTP transport factory, which is based on the Jakarta Commons HTTP Client.

Definition at line 53 of file XmlRpcCommonsTransport.java.


Constructor & Destructor Documentation

Creates a new instance.

Parameters:
pFactoryThe factory, which created this transport.

Definition at line 68 of file XmlRpcCommonsTransport.java.


Member Function Documentation

Check the status of the HTTP request and throw an XmlRpcHttpTransportException if it indicates that there is an error.

Parameters:
pMethodthe method that has been executed
Exceptions:
XmlRpcHttpTransportExceptionif the status of the method indicates that there is an error.

Definition at line 254 of file XmlRpcCommonsTransport.java.

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.

Reimplemented from org.apache.xmlrpc.client.XmlRpcHttpTransport.

Definition at line 85 of file XmlRpcCommonsTransport.java.

Definition at line 155 of file XmlRpcCommonsTransport.java.

Definition at line 107 of file XmlRpcCommonsTransport.java.

Returns, whether the response is gzip compressed.

Parameters:
pConfigThe clients configuration.
Returns:
Whether the response stream is gzip compressed.

Implements org.apache.xmlrpc.client.XmlRpcStreamTransport.

Definition at line 146 of file XmlRpcCommonsTransport.java.

Definition at line 81 of file XmlRpcCommonsTransport.java.

Definition at line 99 of file XmlRpcCommonsTransport.java.

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.

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]

Definition at line 191 of file XmlRpcCommonsTransport.java.


Member Data Documentation

Reimplemented from org.apache.xmlrpc.client.XmlRpcTransportImpl.

Definition at line 59 of file XmlRpcCommonsTransport.java.

Definition at line 63 of file XmlRpcCommonsTransport.java.

Definition at line 62 of file XmlRpcCommonsTransport.java.

Maximum number of allowed redirects.

Definition at line 57 of file XmlRpcCommonsTransport.java.

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.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:50