|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlrpc.client.XmlRpcTransportImpl
org.apache.xmlrpc.client.XmlRpcStreamTransport
org.apache.xmlrpc.client.XmlRpcHttpTransport
org.apache.xmlrpc.client.XmlRpcCommonsTransport
public class XmlRpcCommonsTransport
An HTTP transport factory, which is based on the Jakarta Commons HTTP Client.
Field Summary |
---|
Fields inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport |
---|
USER_AGENT |
Constructor Summary | |
---|---|
XmlRpcCommonsTransport(XmlRpcClient pClient)
Creates a new instance. |
Method Summary | |
---|---|
protected void |
closeConnection(java.lang.Object pConnection)
Closes the connection object. |
protected java.lang.String |
getUserAgent()
|
protected boolean |
isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig,
java.lang.Object pConnection)
Returns, whether the response is gzip compressed. |
protected boolean |
isUsingByteArrayOutput(XmlRpcStreamRequestConfig pConfig)
If this method returns true, then the method XmlRpcStreamTransport.newInputStream(XmlRpcStreamRequestConfig, Object, byte[])
will be invoked to create the response. |
protected java.lang.Object |
newConnection(XmlRpcStreamRequestConfig pConfig)
Creates the connection object. |
protected java.io.InputStream |
newInputStream(XmlRpcStreamRequestConfig pConfig,
java.lang.Object pConnection)
Creates a new input stream for reading the response. |
protected java.io.InputStream |
newInputStream(XmlRpcStreamRequestConfig pConfig,
java.lang.Object pConnection,
byte[] pContents)
Creates a new input stream for reading the response. |
protected java.io.OutputStream |
newOutputStream(XmlRpcStreamRequestConfig pConfig,
java.lang.Object pConnection)
Creates a new output stream, to which the request may be written. |
protected void |
setContentLength(java.lang.Object pConnection,
int pLength)
|
protected void |
setCredentials(XmlRpcHttpClientConfig pConfig,
java.lang.Object pConnection)
|
protected void |
setRequestHeader(java.lang.Object pConnection,
java.lang.String pHeader,
java.lang.String pValue)
|
Methods inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport |
---|
getInputStream, initConnection, setCompressionHeaders |
Methods inherited from class org.apache.xmlrpc.client.XmlRpcStreamTransport |
---|
closeInputStream, closeOutputStream, getOutputStream, newXMLReader, readResponse, sendRequest, writeRequest |
Methods inherited from class org.apache.xmlrpc.client.XmlRpcTransportImpl |
---|
getClient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcCommonsTransport(XmlRpcClient pClient)
pClient
- The client, which will be invoking the transport.Method Detail |
---|
protected java.lang.String getUserAgent()
getUserAgent
in class XmlRpcHttpTransport
protected void setRequestHeader(java.lang.Object pConnection, java.lang.String pHeader, java.lang.String pValue)
setRequestHeader
in class XmlRpcHttpTransport
protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig, java.lang.Object pConnection)
XmlRpcStreamTransport
isResponseGzipCompressed
in class XmlRpcHttpTransport
pConfig
- The clients configuration.pConnection
- The connection object.
protected java.lang.Object newConnection(XmlRpcStreamRequestConfig pConfig) throws XmlRpcClientException
XmlRpcStreamTransport
newConnection
in class XmlRpcStreamTransport
XmlRpcClientException
protected void closeConnection(java.lang.Object pConnection) throws XmlRpcClientException
XmlRpcStreamTransport
closeConnection
in class XmlRpcStreamTransport
XmlRpcClientException
protected java.io.OutputStream newOutputStream(XmlRpcStreamRequestConfig pConfig, java.lang.Object pConnection) throws XmlRpcClientException
XmlRpcStreamTransport
newOutputStream
in class XmlRpcStreamTransport
pConfig
- Client configuration.pConnection
- Connection being used to send request data.
XmlRpcClientException
- An error occurred on the client.protected boolean isUsingByteArrayOutput(XmlRpcStreamRequestConfig pConfig)
XmlRpcStreamTransport
XmlRpcStreamTransport.newInputStream(XmlRpcStreamRequestConfig, Object, byte[])
will be invoked to create the response. Otherwise, the methods
XmlRpcStreamTransport.getOutputStream(XmlRpcStreamRequestConfig, Object)
, and
XmlRpcStreamTransport.newInputStream(XmlRpcStreamRequestConfig, Object)
will
be used.
isUsingByteArrayOutput
in class XmlRpcHttpTransport
protected java.io.InputStream newInputStream(XmlRpcStreamRequestConfig pConfig, java.lang.Object pConnection) throws XmlRpcException
XmlRpcStreamTransport
newInputStream
in class XmlRpcStreamTransport
pConfig
- The clients configuration.pConnection
- The connection object.
XmlRpcException
- Creating the input stream failed.protected void setContentLength(java.lang.Object pConnection, int pLength)
setContentLength
in class XmlRpcHttpTransport
protected java.io.InputStream newInputStream(XmlRpcStreamRequestConfig pConfig, java.lang.Object pConnection, byte[] pContents) throws XmlRpcException
XmlRpcStreamTransport
newInputStream
in class XmlRpcStreamTransport
pConfig
- The clients configuration.pConnection
- The connection object.pContents
- A byte array with the response.
XmlRpcException
- Creating the input stream failed.protected void setCredentials(XmlRpcHttpClientConfig pConfig, java.lang.Object pConnection) throws XmlRpcClientException
setCredentials
in class XmlRpcHttpTransport
XmlRpcClientException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |