public class XmlRpcLocalStreamTransport extends XmlRpcStreamTransport
XmlRpcLocalTransport,
except that it adds request serialization. In other words, it is
particularly well suited for development and testing of XML serialization
and parsing.XmlRpcStreamTransport.GzipReqWriter, XmlRpcStreamTransport.ReqWriter, XmlRpcStreamTransport.ReqWriterImpl| Constructor and Description |
|---|
XmlRpcLocalStreamTransport(XmlRpcClient pClient,
XmlRpcStreamRequestProcessor pServer)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
close()
Closes the connection and ensures, that all resources are being
released.
|
protected InputStream |
getInputStream()
Returns the input stream, from which the response is
being read.
|
protected 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 void |
writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) |
isCompressingRequest, newXMLReader, readResponse, sendRequestgetClientpublic XmlRpcLocalStreamTransport(XmlRpcClient pClient, XmlRpcStreamRequestProcessor pServer)
pClient - The client, which is controlling the transport.pServer - An instance of XmlRpcStreamRequestProcessor.protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
XmlRpcStreamTransportisResponseGzipCompressed in class XmlRpcStreamTransportpConfig - The clients configuration.protected void close()
throws XmlRpcClientException
XmlRpcStreamTransportclose in class XmlRpcStreamTransportXmlRpcClientExceptionprotected InputStream getInputStream() throws XmlRpcException
XmlRpcStreamTransportgetInputStream in class XmlRpcStreamTransportXmlRpcExceptionprotected XmlRpcStreamTransport.ReqWriter newReqWriter(XmlRpcRequest pRequest) throws XmlRpcException, IOException, SAXException
XmlRpcStreamTransportXmlRpcStreamTransport.ReqWriter.newReqWriter in class XmlRpcStreamTransportXmlRpcException - 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 void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws XmlRpcException, IOException, SAXException
writeRequest in class XmlRpcStreamTransportXmlRpcExceptionIOExceptionSAXExceptionCopyright © 2001–2025 The Apache Software Foundation. All rights reserved.