Class XmlRpcLocalStreamTransport
java.lang.Object
org.apache.xmlrpc.client.XmlRpcTransportImpl
org.apache.xmlrpc.client.XmlRpcStreamTransport
org.apache.xmlrpc.client.XmlRpcLocalStreamTransport
- All Implemented Interfaces:
XmlRpcTransport
Another local transport for debugging and testing. This one is
similar to the
XmlRpcLocalTransport,
except that it adds request serialization. In other words, it is
particularly well suited for development and testing of XML serialization
and parsing.-
Nested Class Summary
Nested classes/interfaces inherited from class XmlRpcStreamTransport
XmlRpcStreamTransport.GzipReqWriter, XmlRpcStreamTransport.ReqWriter, XmlRpcStreamTransport.ReqWriterImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LocalStreamConnectionprivate final XmlRpcStreamRequestProcessorprivate XmlRpcRequest -
Constructor Summary
ConstructorsConstructorDescriptionXmlRpcLocalStreamTransport(XmlRpcClient pClient, XmlRpcStreamRequestProcessor pServer) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose()Closes the connection and ensures, that all resources are being released.protected InputStreamReturns the input stream, from which the response is being read.protected booleanReturns, whether the response is gzip compressed.protected XmlRpcStreamTransport.ReqWriternewReqWriter(XmlRpcRequest pRequest) Creates a new instance ofXmlRpcStreamTransport.ReqWriter.protected voidMethods inherited from class XmlRpcStreamTransport
isCompressingRequest, newXMLReader, readResponse, sendRequestMethods inherited from class XmlRpcTransportImpl
getClient
-
Field Details
-
localServer
-
conn
-
request
-
-
Constructor Details
-
XmlRpcLocalStreamTransport
Creates a new instance.- Parameters:
pClient- The client, which is controlling the transport.pServer- An instance ofXmlRpcStreamRequestProcessor.
-
-
Method Details
-
isResponseGzipCompressed
Description copied from class:XmlRpcStreamTransportReturns, whether the response is gzip compressed.- Specified by:
isResponseGzipCompressedin classXmlRpcStreamTransport- Parameters:
pConfig- The clients configuration.- Returns:
- Whether the response stream is gzip compressed.
-
close
Description copied from class:XmlRpcStreamTransportCloses the connection and ensures, that all resources are being released.- Specified by:
closein classXmlRpcStreamTransport- Throws:
XmlRpcClientException
-
getInputStream
Description copied from class:XmlRpcStreamTransportReturns the input stream, from which the response is being read.- Specified by:
getInputStreamin classXmlRpcStreamTransport- Throws:
XmlRpcException
-
newReqWriter
protected XmlRpcStreamTransport.ReqWriter newReqWriter(XmlRpcRequest pRequest) throws XmlRpcException, IOException, SAXException Description copied from class:XmlRpcStreamTransportCreates a new instance ofXmlRpcStreamTransport.ReqWriter.- Overrides:
newReqWriterin classXmlRpcStreamTransport- Throws:
XmlRpcException- Creating the instance failed.IOException- Creating the instance failed, because anIOExceptionoccurs.SAXException- Creating the instance failed, because the request could not be parsed.
-
writeRequest
protected void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws XmlRpcException, IOException, SAXException - Specified by:
writeRequestin classXmlRpcStreamTransport- Throws:
XmlRpcExceptionIOExceptionSAXException
-