org.apache.xmlrpc
Class XmlRpcClientRequestProcessor
java.lang.Object
org.apache.xmlrpc.XmlRpcClientRequestProcessor
public class XmlRpcClientRequestProcessor
extends java.lang.Object
Process an XML-RPC client request into a byte array or directly onto
an OutputStream.
$Id: XmlRpcClientRequestProcessor.java 350048 2005-11-30 21:49:32 +0100 (Mi, 30 Nov 2005) jochen $(package private) TimeZone | tz
|
protected boolean | canReUse() - Called by the worker management framework to see if this object can be
re-used.
|
void | encodeRequest(XmlRpcClientRequest request, String encoding, OutputStream out) - Encode a request from the XmlClientRpcRequest implementation to an
output stream in the specified character encoding.
|
byte[] | encodeRequestBytes(XmlRpcClientRequest request, String encoding) - Encode a request from the XmlRpcClientRequest implementation to a
byte array representing the XML-RPC call, in the specified character
encoding.
|
tz
(package private) TimeZone tz
XmlRpcClientRequestProcessor
public XmlRpcClientRequestProcessor(TimeZone tz)
Creates a new instance.
canReUse
protected boolean canReUse()
Called by the worker management framework to see if this object can be
re-used. Must attempt to clean up any state, and return true if it can
be re-used.
- boolean true if this objcet has been cleaned up and may be re-used.
encodeRequest
public void encodeRequest(XmlRpcClientRequest request,
String encoding,
OutputStream out)
throws XmlRpcClientException,
IOException
Encode a request from the XmlClientRpcRequest implementation to an
output stream in the specified character encoding.
request
- the request to encode.encoding
- the Java name for the encoding to use.
encodeRequestBytes
public byte[] encodeRequestBytes(XmlRpcClientRequest request,
String encoding)
throws XmlRpcClientException
Encode a request from the XmlRpcClientRequest implementation to a
byte array representing the XML-RPC call, in the specified character
encoding.
request
- the request to encode.encoding
- the Java name for the encoding to use.
- byte [] the encoded request.
Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.