org.apache.xmlrpc

Class XmlRpcRequestProcessor


public class XmlRpcRequestProcessor
extends XmlRpc

Process an InputStream and produce an XmlRpcServerRequest. This class is NOT thread safe.
Authors:
Andrew Evers
Hannes Wallnoefer
Daniel L. Rall
Since:
1.2

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.xmlrpc.XmlRpc

XmlRpc.Value

Field Summary

private Vector
requestParams

Fields inherited from class org.apache.xmlrpc.XmlRpc

ARRAY, BASE64, BOOLEAN, DATE, DEFAULT_PARSER, DOUBLE, FATAL, INTEGER, NONE, RECOVERABLE, STRING, STRUCT, cdata, currentValue, debug, defaultInputEncoding, encoding, errorLevel, errorMsg, inputEncoding, keepalive, maxThreads, methodName, parserClass, readCdata, saxDrivers, typeFactory, types, tz, values, version

Constructor Summary

XmlRpcRequestProcessor()
Creates a new instance.

Method Summary

XmlRpcServerRequest
decodeRequest(InputStream is)
Decode a request from an InputStream to the internal XmlRpcRequest implementation.
protected void
objectParsed(Object what)
Called when an object to be added to the argument list has been parsed.

Methods inherited from class org.apache.xmlrpc.XmlRpc

characters, createTypeFactory, endElement, error, fatalError, getDefaultInputEncoding, getEncoding, getInputEncoding, getKeepAlive, getMaxThreads, getServerTimeZone, objectParsed, parse, setDebug, setDefaultInputEncoding, setDriver, setDriver, setEncoding, setInputEncoding, setKeepAlive, setMaxThreads, setServerTimeZone, startElement

Field Details

requestParams

private Vector requestParams

Constructor Details

XmlRpcRequestProcessor

public XmlRpcRequestProcessor()
Creates a new instance.

Method Details

decodeRequest

public XmlRpcServerRequest decodeRequest(InputStream is)
Decode a request from an InputStream to the internal XmlRpcRequest implementation. This method must read data from the specified stream and return an XmlRpcRequest object, or throw an exception.
Parameters:
is - the stream to read the request from.

objectParsed

protected void objectParsed(Object what)
Called when an object to be added to the argument list has been parsed.
Overrides:
objectParsed in interface XmlRpc
Parameters:
what - The parameter parsed from the request.

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