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(javax.xml.bind.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, startPrefixMapping
-
Field Details
-
context
private final javax.xml.bind.JAXBContext context -
handler
private javax.xml.bind.UnmarshallerHandler handler
-
-
Constructor Details
-
JaxbParser
public JaxbParser(javax.xml.bind.JAXBContext pContext) 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.
-