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
A SAX parser for an
XmlRpcClient
's
request.-
Field Summary
FieldsFields inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl
cfg
-
Constructor Summary
ConstructorsConstructorDescriptionXmlRpcRequestParser
(XmlRpcStreamConfig pConfig, TypeFactory pTypeFactory) Creates a new instance, which parses a clients request. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
characters
(char[] pChars, int pOffset, int pLength) void
endElement
(String pURI, String pLocalName, String pQName) Returns the method name being invoked.Returns the parameter list.void
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
level
private int level -
inMethodName
private boolean inMethodName -
methodName
-
params
-
-
Constructor Details
-
XmlRpcRequestParser
Creates a new instance, which parses a clients request.- Parameters:
pConfig
- The client configuration.pTypeFactory
- The type factory.
-
-
Method Details
-
addResult
- Specified by:
addResult
in classRecursiveTypeParserImpl
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
characters
- 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
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
getMethodName
Returns the method name being invoked.- Returns:
- Requested method name.
-
getParams
Returns the parameter list.- Returns:
- Parameter list.
-