|
||||||||||
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
public abstract class XmlRpcStreamTransport
Implementation of a transport class, which is based on an output stream for sending the request and an input stream for receiving the response,
Nested Class Summary | |
---|---|
protected class |
XmlRpcStreamTransport.GzipReqWriter
|
protected static interface |
XmlRpcStreamTransport.ReqWriter
|
protected class |
XmlRpcStreamTransport.ReqWriterImpl
|
Constructor Summary | |
---|---|
protected |
XmlRpcStreamTransport(XmlRpcClient pClient)
Creates a new instance on behalf of the given client. |
Method Summary | |
---|---|
protected abstract void |
close()
Closes the connection and ensures, that all resources are being released. |
protected abstract java.io.InputStream |
getInputStream()
Returns the input stream, from which the response is being read. |
protected boolean |
isCompressingRequest(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig)
|
protected abstract boolean |
isResponseGzipCompressed(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig)
Returns, whether the response is gzip compressed. |
protected XmlRpcStreamTransport.ReqWriter |
newReqWriter(org.apache.xmlrpc.XmlRpcRequest pRequest)
|
protected org.xml.sax.XMLReader |
newXMLReader()
|
protected java.lang.Object |
readResponse(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
java.io.InputStream pStream)
|
java.lang.Object |
sendRequest(org.apache.xmlrpc.XmlRpcRequest pRequest)
Send an XML-RPC message. |
protected abstract void |
writeRequest(XmlRpcStreamTransport.ReqWriter pWriter)
|
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 |
---|
protected XmlRpcStreamTransport(XmlRpcClient pClient)
Method Detail |
---|
protected abstract void close() throws XmlRpcClientException
XmlRpcClientException
protected abstract boolean isResponseGzipCompressed(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig)
pConfig
- The clients configuration.
protected abstract java.io.InputStream getInputStream() throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
protected boolean isCompressingRequest(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig)
protected XmlRpcStreamTransport.ReqWriter newReqWriter(org.apache.xmlrpc.XmlRpcRequest pRequest) throws org.apache.xmlrpc.XmlRpcException, java.io.IOException, org.xml.sax.SAXException
org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.xml.sax.SAXException
protected abstract void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws org.apache.xmlrpc.XmlRpcException, java.io.IOException, org.xml.sax.SAXException
org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.xml.sax.SAXException
public java.lang.Object sendRequest(org.apache.xmlrpc.XmlRpcRequest pRequest) throws org.apache.xmlrpc.XmlRpcException
XmlRpcTransport
pRequest
- The request being performed.
org.apache.xmlrpc.XmlRpcException
- Performing the request failed.protected org.xml.sax.XMLReader newXMLReader() throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
protected java.lang.Object readResponse(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig, java.io.InputStream pStream) throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |