org.apache.xmlrpc.jaxb
Class JaxbParser

java.lang.Object
  extended by org.apache.xmlrpc.parser.ExtParser
      extended by org.apache.xmlrpc.jaxb.JaxbParser
All Implemented Interfaces:
TypeParser, ContentHandler

public class JaxbParser
extends ExtParser

A parser for JAXB objects.


Constructor Summary
JaxbParser(JAXBContext pContext)
          Creates a new instance with the given context.
 
Method Summary
protected  ContentHandler getExtHandler()
          Returns a content handler for parsing the actual contents.
 Object getResult()
          Returns the parsed object.
protected  String getTagName()
          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
 

Constructor Detail

JaxbParser

public JaxbParser(JAXBContext pContext)
Creates a new instance with the given context.

Parameters:
pContext - The context being used for creating unmarshallers.
Method Detail

getExtHandler

protected ContentHandler getExtHandler()
                                throws SAXException
Description copied from class: ExtParser
Returns a content handler for parsing the actual contents.

Specified by:
getExtHandler in class ExtParser
Returns:
A SAX handler for parsing the XML inside the outer ex:foo element.
Throws:
SAXException - Creating the handler failed.

getTagName

protected String getTagName()
Description copied from class: ExtParser
Returns the outer node name.

Specified by:
getTagName in class ExtParser

getResult

public Object getResult()
                 throws XmlRpcException
Description copied from interface: TypeParser
Returns the parsed object.

Returns:
The parameter or result object.
Throws:
XmlRpcException - Creating the result object failed.


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.