Class UnmarshallingEventHandlerAdaptor
- java.lang.Object
-
- com.sun.identity.saml2.jaxb.assertion.impl.runtime.UnmarshallingEventHandlerAdaptor
-
- All Implemented Interfaces:
UnmarshallingEventHandler
public class UnmarshallingEventHandlerAdaptor extends Object implements UnmarshallingEventHandler
Redirects events to another SAX ContentHandler.Note that the SAXException returned by the ContentHandler is unreported. So we have to catch them and report it, then rethrow it if necessary.
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected UnmarshallingContextcontextprotected ContentHandlerhandlerThis handler will receive SAX events.
-
Constructor Summary
Constructors Constructor Description UnmarshallingEventHandlerAdaptor(UnmarshallingContext _ctxt, ContentHandler _handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenterAttribute(String uri, String local, String qname)voidenterElement(String uri, String local, String qname, Attributes atts)voidleaveAttribute(String uri, String local, String qname)voidleaveChild(int nextState)voidleaveElement(String uri, String local, String qname)Objectowner()Returns the content-tree object for which this unmarshaller is working for.voidtext(String s)
-
-
-
Field Detail
-
context
protected final UnmarshallingContext context
-
handler
protected final ContentHandler handler
This handler will receive SAX events.
-
-
Constructor Detail
-
UnmarshallingEventHandlerAdaptor
public UnmarshallingEventHandlerAdaptor(UnmarshallingContext _ctxt, ContentHandler _handler) throws SAXException
- Throws:
SAXException
-
-
Method Detail
-
owner
public Object owner()
Description copied from interface:UnmarshallingEventHandlerReturns the content-tree object for which this unmarshaller is working for.- Specified by:
ownerin interfaceUnmarshallingEventHandler
-
enterAttribute
public void enterAttribute(String uri, String local, String qname) throws SAXException
- Specified by:
enterAttributein interfaceUnmarshallingEventHandler- Throws:
SAXException
-
enterElement
public void enterElement(String uri, String local, String qname, Attributes atts) throws SAXException
- Specified by:
enterElementin interfaceUnmarshallingEventHandler- Throws:
SAXException
-
leaveAttribute
public void leaveAttribute(String uri, String local, String qname) throws SAXException
- Specified by:
leaveAttributein interfaceUnmarshallingEventHandler- Throws:
SAXException
-
leaveElement
public void leaveElement(String uri, String local, String qname) throws SAXException
- Specified by:
leaveElementin interfaceUnmarshallingEventHandler- Throws:
SAXException
-
text
public void text(String s) throws SAXException
- Specified by:
textin interfaceUnmarshallingEventHandler- Throws:
SAXException
-
leaveChild
public void leaveChild(int nextState) throws SAXException- Specified by:
leaveChildin interfaceUnmarshallingEventHandler- Throws:
SAXException
-
-