public abstract class XmlRpcStreamTransport extends 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(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 java.io.InputStream |
getInputStream()
Returns the input stream, from which the response is
being read.
|
protected boolean |
isCompressingRequest(XmlRpcStreamRequestConfig pConfig) |
protected abstract boolean |
isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
Returns, whether the response is gzip compressed.
|
protected XmlRpcStreamTransport.ReqWriter |
newReqWriter(XmlRpcRequest pRequest)
Creates a new instance of
XmlRpcStreamTransport.ReqWriter . |
protected org.xml.sax.XMLReader |
newXMLReader() |
protected java.lang.Object |
readResponse(XmlRpcStreamRequestConfig pConfig,
java.io.InputStream pStream) |
java.lang.Object |
sendRequest(XmlRpcRequest pRequest)
Send an XML-RPC message.
|
protected abstract void |
writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) |
getClient
protected XmlRpcStreamTransport(XmlRpcClient pClient)
protected abstract void close() throws XmlRpcClientException
XmlRpcClientException
protected abstract boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
pConfig
- The clients configuration.protected abstract java.io.InputStream getInputStream() throws XmlRpcException
XmlRpcException
protected boolean isCompressingRequest(XmlRpcStreamRequestConfig pConfig)
protected XmlRpcStreamTransport.ReqWriter newReqWriter(XmlRpcRequest pRequest) throws XmlRpcException, java.io.IOException, org.xml.sax.SAXException
XmlRpcStreamTransport.ReqWriter
.XmlRpcException
- Creating the instance failed.java.io.IOException
- Creating the instance failed, because
an IOException
occurs.org.xml.sax.SAXException
- Creating the instance failed, because
the request could not be parsed.protected abstract void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws XmlRpcException, java.io.IOException, org.xml.sax.SAXException
XmlRpcException
java.io.IOException
org.xml.sax.SAXException
public java.lang.Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException
XmlRpcTransport
pRequest
- The request being performed.XmlRpcException
- Performing the request failed.protected org.xml.sax.XMLReader newXMLReader() throws XmlRpcException
XmlRpcException
protected java.lang.Object readResponse(XmlRpcStreamRequestConfig pConfig, java.io.InputStream pStream) throws XmlRpcException
XmlRpcException
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.