org.apache.xmlrpc
Class XmlRpcRequestProcessor

java.lang.Object
  extended byorg.xml.sax.HandlerBase
      extended byorg.apache.xmlrpc.XmlRpc
          extended byorg.apache.xmlrpc.XmlRpcRequestProcessor
All Implemented Interfaces:
org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class XmlRpcRequestProcessor
extends XmlRpc

Process an InputStream and produce an XmlRpcServerRequest. This class is NOT thread safe.

Since:
1.2
Author:
Andrew Evers, Hannes Wallnoefer, Daniel L. Rall

Nested Class Summary
 
Nested classes inherited from class org.apache.xmlrpc.XmlRpc
XmlRpc.Value
 
Field Summary
private  java.util.Vector requestParams
           
 
Fields inherited from class org.apache.xmlrpc.XmlRpc
ARRAY, BASE64, BOOLEAN, cdata, currentValue, DATE, debug, defaultInputEncoding, DOUBLE, encoding, errorLevel, errorMsg, FATAL, INTEGER, keepalive, methodName, NONE, readCdata, RECOVERABLE, STRING, STRUCT, types, tz, values, version
 
Constructor Summary
XmlRpcRequestProcessor()
          Creates a new instance.
 
Method Summary
 XmlRpcServerRequest decodeRequest(java.io.InputStream is)
          Decode a request from an InputStream to the internal XmlRpcRequest implementation.
protected  void objectParsed(java.lang.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, endElement, error, fatalError, getDefaultInputEncoding, getEncoding, getInputEncoding, getKeepAlive, getMaxThreads, getServerTimeZone, parse, setDebug, setDefaultInputEncoding, setDriver, setDriver, setEncoding, setInputEncoding, setKeepAlive, setMaxThreads, setServerTimeZone, startElement
 
Methods inherited from class org.xml.sax.HandlerBase
endDocument, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestParams

private java.util.Vector requestParams
Constructor Detail

XmlRpcRequestProcessor

public XmlRpcRequestProcessor()
Creates a new instance.

Method Detail

decodeRequest

public XmlRpcServerRequest decodeRequest(java.io.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.
Throws:
ParseFailed - if unable to parse the request.

objectParsed

protected void objectParsed(java.lang.Object what)
Called when an object to be added to the argument list has been parsed.

Specified by:
objectParsed in class XmlRpc
Parameters:
what - The parameter parsed from the request.


Copyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.