org.apache.xmlrpc
Class XmlRpcRequestProcessor

java.lang.Object
  extended by org.xml.sax.HandlerBase
      extended by org.apache.xmlrpc.XmlRpc
          extended by org.apache.xmlrpc.XmlRpcRequestProcessor
All Implemented Interfaces:
DocumentHandler, DTDHandler, EntityResolver, 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/interfaces inherited from class org.apache.xmlrpc.XmlRpc
XmlRpc.Value
 
Field Summary
 
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
 

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 2001-2001-2005 Apache Software Foundation. All Rights Reserved.