Package org.apache.xmlrpc.parser
Class XmlRpcRequestParser
- java.lang.Object
-
- org.apache.xmlrpc.parser.TypeParserImpl
-
- org.apache.xmlrpc.parser.RecursiveTypeParserImpl
-
- org.apache.xmlrpc.parser.XmlRpcRequestParser
-
- All Implemented Interfaces:
TypeParser
,ContentHandler
public class XmlRpcRequestParser extends RecursiveTypeParserImpl
A SAX parser for anXmlRpcClient
's request.
-
-
Field Summary
-
Fields inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl
cfg
-
-
Constructor Summary
Constructors Constructor Description XmlRpcRequestParser(XmlRpcStreamConfig pConfig, TypeFactory pTypeFactory)
Creates a new instance, which parses a clients request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
endPrefixMapping, endValueTag, ignorableWhitespace, processingInstruction, skippedEntity, startPrefixMapping, startValueTag
-
Methods inherited from class org.apache.xmlrpc.parser.TypeParserImpl
endDocument, getDocumentLocator, getResult, isEmpty, setDocumentLocator, setResult
-
-
-
-
Constructor Detail
-
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 Detail
-
addResult
protected void addResult(Object pResult)
- Specified by:
addResult
in classRecursiveTypeParserImpl
-
startDocument
public void startDocument() throws SAXException
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
characters
public void characters(char[] pChars, int pOffset, int pLength) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
startElement
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
endElement
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
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.
-
-