Package org.apache.xmlrpc.jaxb
Class JaxbParser
java.lang.Object
org.apache.xmlrpc.parser.ExtParser
org.apache.xmlrpc.jaxb.JaxbParser
- All Implemented Interfaces:
TypeParser,ContentHandler
A parser for JAXB objects.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJaxbParser(JAXBContext pContext) Creates a new instance with the given context. -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentHandlerReturns a content handler for parsing the actual contents.Returns the parsed object.protected StringReturns the outer node name.Methods inherited from class org.apache.xmlrpc.parser.ExtParser
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
context
-
handler
-
-
Constructor Details
-
JaxbParser
Creates a new instance with the given context.- Parameters:
pContext- The context being used for creating unmarshallers.
-
-
Method Details
-
getExtHandler
Description copied from class:ExtParserReturns a content handler for parsing the actual contents.- Specified by:
getExtHandlerin classExtParser- Returns:
- A SAX handler for parsing the XML inside the outer ex:foo element.
- Throws:
SAXException- Creating the handler failed.
-
getTagName
Description copied from class:ExtParserReturns the outer node name.- Specified by:
getTagNamein classExtParser
-
getResult
Description copied from interface:TypeParserReturns the parsed object.- Returns:
- The parameter or result object.
- Throws:
XmlRpcException- Creating the result object failed.
-