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, sendRequest
getClient
public XmlRpcLocalStreamTransport(XmlRpcClient pClient, XmlRpcStreamRequestProcessor pServer)
pClient
- The client, which is controlling the transport.pServer
- An instance of XmlRpcStreamRequestProcessor
.protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
XmlRpcStreamTransport
isResponseGzipCompressed
in class XmlRpcStreamTransport
pConfig
- The clients configuration.protected void close() throws XmlRpcClientException
XmlRpcStreamTransport
close
in class XmlRpcStreamTransport
XmlRpcClientException
protected InputStream getInputStream() throws XmlRpcException
XmlRpcStreamTransport
getInputStream
in class XmlRpcStreamTransport
XmlRpcException
protected XmlRpcStreamTransport.ReqWriter newReqWriter(XmlRpcRequest pRequest) throws XmlRpcException, IOException, SAXException
XmlRpcStreamTransport
XmlRpcStreamTransport.ReqWriter
.newReqWriter
in class XmlRpcStreamTransport
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 void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws XmlRpcException, IOException, SAXException
writeRequest
in class XmlRpcStreamTransport
XmlRpcException
IOException
SAXException
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.