public abstract class XmlRpcStreamTransport
extends org.apache.xmlrpc.client.XmlRpcTransportImpl
| Modifier and Type | Class and Description |
|---|---|
protected class |
XmlRpcStreamTransport.GzipReqWriter |
protected static interface |
XmlRpcStreamTransport.ReqWriter |
protected class |
XmlRpcStreamTransport.ReqWriterImpl |
| Modifier | Constructor and Description |
|---|---|
protected |
XmlRpcStreamTransport(org.apache.xmlrpc.client.XmlRpcClient pClient)
Creates a new instance on behalf of the given client.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
close()
Closes the connection and ensures, that all resources are being
released.
|
protected abstract 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)
Creates a new instance of
XmlRpcStreamTransport.ReqWriter. |
protected XMLReader |
newXMLReader() |
protected Object |
readResponse(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
InputStream pStream) |
Object |
sendRequest(org.apache.xmlrpc.XmlRpcRequest pRequest) |
protected abstract void |
writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) |
protected XmlRpcStreamTransport(org.apache.xmlrpc.client.XmlRpcClient pClient)
protected abstract void close()
throws org.apache.xmlrpc.client.XmlRpcClientException
org.apache.xmlrpc.client.XmlRpcClientExceptionprotected abstract boolean isResponseGzipCompressed(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig)
pConfig - The clients configuration.protected abstract InputStream getInputStream() throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcExceptionprotected boolean isCompressingRequest(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig)
protected XmlRpcStreamTransport.ReqWriter newReqWriter(org.apache.xmlrpc.XmlRpcRequest pRequest) throws org.apache.xmlrpc.XmlRpcException, IOException, SAXException
XmlRpcStreamTransport.ReqWriter.org.apache.xmlrpc.XmlRpcException - Creating the instance failed.IOException - Creating the instance failed, because
an IOException occurs.SAXException - Creating the instance failed, because
the request could not be parsed.protected abstract void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws org.apache.xmlrpc.XmlRpcException, IOException, SAXException
org.apache.xmlrpc.XmlRpcExceptionIOExceptionSAXExceptionpublic Object sendRequest(org.apache.xmlrpc.XmlRpcRequest pRequest) throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcExceptionprotected XMLReader newXMLReader() throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcExceptionprotected Object readResponse(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig, InputStream pStream) throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcExceptionCopyright © 2018. All rights reserved.