org.apache.xmlrpc.parser

Class XmlRpcRequestParser

Implemented Interfaces:
ContentHandler, TypeParser

public class XmlRpcRequestParser
extends RecursiveTypeParserImpl

A SAX parser for an XmlRpcClient's request.

Field Summary

Fields inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl

cfg

Constructor Summary

XmlRpcRequestParser(XmlRpcStreamConfig pConfig, TypeFactory pTypeFactory)
Creates a new instance, which parses a clients request.

Method Summary

protected void
addResult(Object pResult)
void
characters(char[] pChars, int pOffset, int pLength)
void
endElement(String pURI, String pLocalName, String pQName)
String
getMethodName()
Returns the method name being invoked.
List
getParams()
Returns the parameter list.
void
startDocument()
void
startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs)

Methods inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl

addResult, characters, endElement, endPrefixMapping, endValueTag, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startElement, startPrefixMapping, startValueTag

Methods inherited from class org.apache.xmlrpc.parser.TypeParserImpl

characters, endDocument, endPrefixMapping, getDocumentLocator, getResult, ignorableWhitespace, isEmpty, processingInstruction, setDocumentLocator, setResult, skippedEntity, startDocument, startPrefixMapping

Constructor Details

XmlRpcRequestParser

public XmlRpcRequestParser(XmlRpcStreamConfig pConfig,
                           TypeFactory pTypeFactory)
Creates a new instance, which parses a clients request.
Parameters:
pConfig - The client configuration.
pTypeFactory - The type factory.

Method Details

addResult

protected void addResult(Object pResult)
Overrides:
addResult in interface RecursiveTypeParserImpl

characters

public void characters(char[] pChars,
                       int pOffset,
                       int pLength)
            throws SAXException
Overrides:
characters in interface RecursiveTypeParserImpl

endElement

public void endElement(String pURI,
                       String pLocalName,
                       String pQName)
            throws SAXException
Overrides:
endElement in interface RecursiveTypeParserImpl

getMethodName

public String getMethodName()
Returns the method name being invoked.
Returns:
Requested method name.

getParams

public List getParams()
Returns the parameter list.
Returns:
Parameter list.

startDocument

public void startDocument()
            throws SAXException
Overrides:
startDocument in interface RecursiveTypeParserImpl

startElement

public void startElement(String pURI,
                         String pLocalName,
                         String pQName,
                         Attributes pAttrs)
            throws SAXException
Overrides:
startElement in interface RecursiveTypeParserImpl

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.