org.apache.xmlrpc

Class XmlRpcClientRequestProcessor

public class XmlRpcClientRequestProcessor extends Object

Process an XML-RPC client request into a byte array or directly onto an OutputStream.

Since: 1.2

Version: $Id: XmlRpcClientRequestProcessor.java 350048 2005-11-30 21:49:32 +0100 (Mi, 30 Nov 2005) jochen $

Author: Hannes Wallnoefer Andrew Evers

Field Summary
TimeZonetz
Constructor Summary
XmlRpcClientRequestProcessor(TimeZone tz)
Creates a new instance.
Method Summary
protected booleancanReUse()
Called by the worker management framework to see if this object can be re-used.
voidencodeRequest(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.

Field Detail

tz

TimeZone tz

Constructor Detail

XmlRpcClientRequestProcessor

public XmlRpcClientRequestProcessor(TimeZone tz)
Creates a new instance.

Method Detail

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.

Returns: boolean true if this objcet has been cleaned up and may be re-used.

encodeRequest

public void encodeRequest(XmlRpcClientRequest request, String encoding, OutputStream out)
Encode a request from the XmlClientRpcRequest implementation to an output stream in the specified character encoding.

Parameters: request the request to encode. encoding the Java name for the encoding to use.

encodeRequestBytes

public 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.

Parameters: request the request to encode. encoding the Java name for the encoding to use.

Returns: byte [] the encoded request.

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.