Package org.frankframework.xml
Class ExceptionInsertingFilter
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
org.frankframework.xml.FullXmlFilter
org.frankframework.xml.ExceptionInsertingFilter
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,LexicalHandler
,XMLFilter
,XMLReader
XMLFilter to reinsert exceptions into a XMLFilter chain.
Typical use case is in a XMLFilter chain with a streaming XSLT. In that case, the actual processing of the XSLT
in the tail of the chain is performed internally in a different thread than the provisioning of events from the head of the chain.
Exceptions in the tail of the chain do not reach the head then.
In such a situation the ExceptionInsertingFilter can be used in the head of the chain, to receive unhandled exceptions of the tail.
- Author:
- Gerrit van Brakel
- See Also:
-
Field Summary
Fields inherited from class org.frankframework.xml.FullXmlFilter
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
comment
(char[] ch, int start, int length) void
endCDATA()
void
void
endDTD()
void
endElement
(String uri, String localName, String qName) void
void
endPrefixMapping
(String prefix) void
void
void
ignorableWhitespace
(char[] ch, int start, int length) void
insertException
(SAXException exception) void
notationDecl
(String name, String publicId, String systemId) void
processingInstruction
(String target, String data) resolveEntity
(String publicId, String systemId) void
skippedEntity
(String name) void
void
void
void
startElement
(String uri, String localName, String qName, Attributes atts) void
startEntity
(String name) void
startPrefixMapping
(String prefix, String uri) void
unparsedEntityDecl
(String name, String publicId, String systemId, String notationName) void
Methods inherited from class org.frankframework.xml.FullXmlFilter
setContentHandler, setLexicalHandler, setParent, setParentsLexicalHandler
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, parse, parse, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
ExceptionInsertingFilter
-
-
Method Details
-
insertException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classXMLFilterImpl
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classXMLFilterImpl
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classXMLFilterImpl
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classXMLFilterImpl
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classXMLFilterImpl
- Throws:
SAXException
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Overrides:
comment
in classFullXmlFilter
- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Overrides:
startCDATA
in classFullXmlFilter
- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Overrides:
endCDATA
in classFullXmlFilter
- Throws:
SAXException
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Overrides:
startDTD
in classFullXmlFilter
- Throws:
SAXException
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Overrides:
endDTD
in classFullXmlFilter
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Overrides:
startEntity
in classFullXmlFilter
- Throws:
SAXException
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Overrides:
endEntity
in classFullXmlFilter
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classXMLFilterImpl
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classXMLFilterImpl
- Throws:
SAXException
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Overrides:
warning
in classXMLFilterImpl
- Throws:
SAXException
-
error
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classXMLFilterImpl
- Throws:
SAXException
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classXMLFilterImpl
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classXMLFilterImpl
- Throws:
SAXException
-
notationDecl
- Specified by:
notationDecl
in interfaceDTDHandler
- Overrides:
notationDecl
in classXMLFilterImpl
- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Overrides:
processingInstruction
in classXMLFilterImpl
- Throws:
SAXException
-
resolveEntity
- Specified by:
resolveEntity
in interfaceEntityResolver
- Overrides:
resolveEntity
in classXMLFilterImpl
- Throws:
SAXException
IOException
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Overrides:
skippedEntity
in classXMLFilterImpl
- Throws:
SAXException
-
unparsedEntityDecl
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException - Specified by:
unparsedEntityDecl
in interfaceDTDHandler
- Overrides:
unparsedEntityDecl
in classXMLFilterImpl
- Throws:
SAXException
-