|
||||||||||
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.XmlRpcSunHttpTransport
public class XmlRpcSunHttpTransport
Default implementation of an HTTP transport, based on the
HttpURLConnection
class.
Field Summary |
---|
Fields inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport |
---|
USER_AGENT |
Constructor Summary | |
---|---|
XmlRpcSunHttpTransport(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 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[] pContent)
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 |
setRequestHeader(java.lang.Object pConnection,
java.lang.String pHeader,
java.lang.String pValue)
|
Methods inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport |
---|
getInputStream, initConnection, isUsingByteArrayOutput, setCompressionHeaders, setContentLength, setCredentials |
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 XmlRpcSunHttpTransport(XmlRpcClient pClient)
pClient
- The client controlling this instance.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 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 java.io.InputStream newInputStream(XmlRpcStreamRequestConfig pConfig, java.lang.Object pConnection) throws XmlRpcClientException
XmlRpcStreamTransport
newInputStream
in class XmlRpcStreamTransport
pConfig
- The clients configuration.pConnection
- The connection object.
XmlRpcClientException
protected java.io.InputStream newInputStream(XmlRpcStreamRequestConfig pConfig, java.lang.Object pConnection, byte[] pContent) throws XmlRpcClientException
XmlRpcStreamTransport
newInputStream
in class XmlRpcStreamTransport
pConfig
- The clients configuration.pConnection
- The connection object.pContent
- A byte array with the response.
XmlRpcClientException
protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig, java.lang.Object pConnection)
XmlRpcStreamTransport
isResponseGzipCompressed
in class XmlRpcHttpTransport
pConfig
- The clients configuration.pConnection
- The connection object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |