Class JaxbParser

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

public class JaxbParser extends ExtParser
A parser for JAXB objects.
  • Field Details

  • Constructor Details

    • JaxbParser

      public JaxbParser(JAXBContext pContext)
      Creates a new instance with the given context.
      Parameters:
      pContext - The context being used for creating unmarshallers.
  • Method Details

    • 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.