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 voidvoidcharacters(char[] pChars, int pOffset, int pLength) voidendElement(String pURI, String pLocalName, String pQName) Returns the method name being invoked.Returns the parameter list.voidvoidstartElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) Methods inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl
endPrefixMapping, endValueTag, ignorableWhitespace, processingInstruction, skippedEntity, startPrefixMapping, startValueTagMethods inherited from class org.apache.xmlrpc.parser.TypeParserImpl
endDocument, getDocumentLocator, getResult, isEmpty, setDocumentLocator, setResult
-
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:
addResultin classRecursiveTypeParserImpl
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classRecursiveTypeParserImpl- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classRecursiveTypeParserImpl- Throws:
SAXException
-
startElement
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classRecursiveTypeParserImpl- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classRecursiveTypeParserImpl- Throws:
SAXException
-
getMethodName
Returns the method name being invoked.- Returns:
- Requested method name.
-
getParams
Returns the parameter list.- Returns:
- Parameter list.
-