org.apache.xmlrpc.client

Class XmlRpcStreamTransport

public abstract class XmlRpcStreamTransport extends XmlRpcTransportImpl

Implementation of a transport class, which is based on an output stream for sending the request and an input stream for receiving the response,
Nested Class Summary
protected classXmlRpcStreamTransport.GzipReqWriter
protected interfaceXmlRpcStreamTransport.ReqWriter
protected classXmlRpcStreamTransport.ReqWriterImpl
Constructor Summary
protected XmlRpcStreamTransport(XmlRpcClient pClient)
Creates a new instance on behalf of the given client.
Method Summary
protected abstract voidclose()
Closes the connection and ensures, that all resources are being released.
protected abstract InputStreamgetInputStream()
Returns the input stream, from which the response is being read.
protected booleanisCompressingRequest(XmlRpcStreamRequestConfig pConfig)
protected abstract booleanisResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
Returns, whether the response is gzip compressed.
protected XmlRpcStreamTransport.ReqWriternewReqWriter(XmlRpcRequest pRequest)
protected XMLReadernewXMLReader()
protected ObjectreadResponse(XmlRpcStreamRequestConfig pConfig, InputStream pStream)
ObjectsendRequest(XmlRpcRequest pRequest)
protected abstract voidwriteRequest(XmlRpcStreamTransport.ReqWriter pWriter)

Constructor Detail

XmlRpcStreamTransport

protected XmlRpcStreamTransport(XmlRpcClient pClient)
Creates a new instance on behalf of the given client.

Method Detail

close

protected abstract void close()
Closes the connection and ensures, that all resources are being released.

getInputStream

protected abstract InputStream getInputStream()
Returns the input stream, from which the response is being read.

isCompressingRequest

protected boolean isCompressingRequest(XmlRpcStreamRequestConfig pConfig)

isResponseGzipCompressed

protected abstract boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
Returns, whether the response is gzip compressed.

Parameters: pConfig The clients configuration.

Returns: Whether the response stream is gzip compressed.

newReqWriter

protected XmlRpcStreamTransport.ReqWriter newReqWriter(XmlRpcRequest pRequest)

newXMLReader

protected XMLReader newXMLReader()

readResponse

protected Object readResponse(XmlRpcStreamRequestConfig pConfig, InputStream pStream)

sendRequest

public Object sendRequest(XmlRpcRequest pRequest)

writeRequest

protected abstract void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter)
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.