org.apache.xmlrpc.client
Class XmlRpcStreamTransport
- XmlRpcTransport
public abstract class XmlRpcStreamTransport
Implementation of a transport class, which is based on an output
stream for sending the request and an input stream for receiving
the response,
XmlRpcStreamTransport
protected XmlRpcStreamTransport(XmlRpcClient pClient)
Creates a new instance on behalf of the given client.
close
protected abstract void close()
throws XmlRpcClientException
Closes the connection and ensures, that all resources are being
released.
getInputStream
protected abstract InputStream getInputStream()
throws XmlRpcException
Returns the input stream, from which the response is
being read.
isResponseGzipCompressed
protected abstract boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
Returns, whether the response is gzip compressed.
pConfig
- The clients configuration.
- Whether the response stream is gzip compressed.
sendRequest
public Object sendRequest(XmlRpcRequest pRequest)
throws XmlRpcException
Send an XML-RPC message. This method is called to send a message to the
other party.
- sendRequest in interface XmlRpcTransport
pRequest
- The request being performed.
- Result object, if invoking the remote method was successfull.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.