Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xmlrpc.client.XmlRpcTransportImpl
org.apache.xmlrpc.client.XmlRpcStreamTransport
org.apache.xmlrpc.client.XmlRpcHttpTransport
org.apache.xmlrpc.client.XmlRpcLiteHttpTransport
public class XmlRpcLiteHttpTransport
extends XmlRpcHttpTransport
Nested Class Summary |
Nested classes/interfaces inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport | |
XmlRpcHttpTransport.ByteArrayReqWriter |
Nested classes/interfaces inherited from class org.apache.xmlrpc.client.XmlRpcStreamTransport | |
XmlRpcStreamTransport.GzipReqWriter , XmlRpcStreamTransport.ReqWriter , XmlRpcStreamTransport.ReqWriterImpl |
Field Summary |
Fields inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport | |
USER_AGENT |
Constructor Summary | |
|
Method Summary | |
protected void |
|
protected InputStream |
|
protected boolean |
|
protected boolean | |
protected Socket |
|
Object |
|
protected void |
|
protected void |
Methods inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport | |
getUserAgent , initHttpHeaders , isUsingByteArrayOutput , newReqWriter , sendRequest , setCompressionHeaders , setContentLength , setCredentials , setRequestHeader |
Methods inherited from class org.apache.xmlrpc.client.XmlRpcStreamTransport | |
close , getInputStream , isCompressingRequest , isResponseGzipCompressed , newReqWriter , newXMLReader , readResponse , sendRequest , writeRequest |
Methods inherited from class org.apache.xmlrpc.client.XmlRpcTransportImpl | |
getClient |
public XmlRpcLiteHttpTransport(XmlRpcClient pClient)
Creates a new instance.
- Parameters:
pClient
- The client controlling this instance.
protected void close() throws XmlRpcClientException
Closes the connection and ensures, that all resources are being released.
- Overrides:
- close in interface XmlRpcStreamTransport
protected InputStream getInputStream() throws XmlRpcException
Returns the input stream, from which the response is being read.
- Overrides:
- getInputStream in interface XmlRpcStreamTransport
protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
Returns, whether the response is gzip compressed.
- Overrides:
- isResponseGzipCompressed in interface XmlRpcStreamTransport
- Parameters:
pConfig
- The clients configuration.
- Returns:
- Whether the response stream is gzip compressed.
protected boolean isUsingByteArrayOutput(XmlRpcHttpClientConfig pConfig)
- Overrides:
- isUsingByteArrayOutput in interface XmlRpcHttpTransport
protected Socket newSocket(String pHostName, int pPort) throws UnknownHostException, IOException
public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException
Send an XML-RPC message. This method is called to send a message to the other party.
- Specified by:
- sendRequest in interface XmlRpcTransport
- Overrides:
- sendRequest in interface XmlRpcHttpTransport
- Parameters:
pRequest
- The request being performed.
- Returns:
- Result object, if invoking the remote method was successfull.
- Throws:
XmlRpcException
- Performing the request failed.
protected void setRequestHeader(String pHeader, String pValue)
- Overrides:
- setRequestHeader in interface XmlRpcHttpTransport
protected void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws XmlRpcException, IOException, SAXException
- Overrides:
- writeRequest in interface XmlRpcStreamTransport