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 and XmlRpcRequest. This class is NOT thread safe.

Since:
1.2
Author:
Andrew Evers, Hannes Wallnoefer, Daniel 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, DOUBLE, encoding, errorLevel, errorMsg, FATAL, INTEGER, keepalive, methodName, NONE, readCdata, RECOVERABLE, STRING, STRUCT, types, values, version
 
Constructor Summary
protected XmlRpcRequestProcessor()
          Creates a new instance.
 
Method Summary
protected  void objectParsed(java.lang.Object what)
          Called when an object to be added to the argument list has been parsed.
 XmlRpcRequest processRequest(java.io.InputStream is)
          Process a request.
 
Methods inherited from class org.apache.xmlrpc.XmlRpc
characters, endElement, error, fatalError, getEncoding, getKeepAlive, getMaxThreads, parse, setDebug, setDriver, setDriver, setEncoding, setKeepAlive, setMaxThreads, 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

protected XmlRpcRequestProcessor()
Creates a new instance.

Method Detail

processRequest

public XmlRpcRequest processRequest(java.io.InputStream is)
Process a request.

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 © ${year} Apache Software Foundation. All Rights Reserved.