Package org.apache.xmlrpc.jaxb
Class JaxbParser
- java.lang.Object
-
- org.apache.xmlrpc.parser.ExtParser
-
- org.apache.xmlrpc.jaxb.JaxbParser
-
- All Implemented Interfaces:
TypeParser,org.xml.sax.ContentHandler
public class JaxbParser extends ExtParser
A parser for JAXB objects.
-
-
Constructor Summary
Constructors Constructor Description JaxbParser(javax.xml.bind.JAXBContext pContext)Creates a new instance with the given context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.xml.sax.ContentHandlergetExtHandler()Returns a content handler for parsing the actual contents.java.lang.ObjectgetResult()Returns the parsed object.protected java.lang.StringgetTagName()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
-
-
-
-
Method Detail
-
getExtHandler
protected org.xml.sax.ContentHandler getExtHandler() throws org.xml.sax.SAXExceptionDescription 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:
org.xml.sax.SAXException- Creating the handler failed.
-
getTagName
protected java.lang.String getTagName()
Description copied from class:ExtParserReturns the outer node name.- Specified by:
getTagNamein classExtParser
-
getResult
public java.lang.Object getResult() throws XmlRpcExceptionDescription copied from interface:TypeParserReturns the parsed object.- Returns:
- The parameter or result object.
- Throws:
XmlRpcException- Creating the result object failed.
-
-