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 ContentHandler
Returns a content handler for parsing the actual contents.Returns the parsed object.protected String
Returns the outer node name.Methods inherited from class org.apache.xmlrpc.parser.ExtParser
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
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
-
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:ExtParser
Returns a content handler for parsing the actual contents.- Specified by:
getExtHandler
in 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:ExtParser
Returns the outer node name.- Specified by:
getTagName
in classExtParser
-
getResult
Description copied from interface:TypeParser
Returns the parsed object.- Returns:
- The parameter or result object.
- Throws:
XmlRpcException
- Creating the result object failed.
-