|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlrpc.client.XmlRpcTransportImpl
org.apache.xmlrpc.client.XmlRpcStreamTransport
org.apache.xmlrpc.client.XmlRpcLocalStreamTransport
public class XmlRpcLocalStreamTransport
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 org.apache.xmlrpc.client.XmlRpcStreamTransport |
---|
XmlRpcStreamTransport.RequestWriter |
Constructor Summary | |
---|---|
XmlRpcLocalStreamTransport(XmlRpcClient pClient,
XmlRpcStreamRequestProcessor pServer)
Creates a new instance. |
Method Summary | |
---|---|
protected void |
close()
Closes the connection and ensures, that all resources are being released. |
protected java.io.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 void |
writeRequest(XmlRpcStreamTransport.RequestWriter pWriter)
Invokes the request writer. |
Methods inherited from class org.apache.xmlrpc.client.XmlRpcStreamTransport |
---|
isCompressingRequest, newRequestWriter, newXMLReader, readResponse, sendRequest |
Methods inherited from class org.apache.xmlrpc.client.XmlRpcTransportImpl |
---|
getClient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcLocalStreamTransport(XmlRpcClient pClient, XmlRpcStreamRequestProcessor pServer)
pClient
- The client, which is controlling the transport.pServer
- An instance of XmlRpcStreamRequestProcessor
.Method Detail |
---|
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 java.io.InputStream getInputStream() throws XmlRpcException
XmlRpcStreamTransport
getInputStream
in class XmlRpcStreamTransport
XmlRpcException
protected void writeRequest(XmlRpcStreamTransport.RequestWriter pWriter) throws XmlRpcException
XmlRpcStreamTransport
writeRequest
in class XmlRpcStreamTransport
XmlRpcException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |