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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidcomment(char[] ch, int start, int length) voidendCDATA()voidvoidendDTD()voidendElement(String uri, String localName, String qName) voidvoidendPrefixMapping(String prefix) voidvoidvoidignorableWhitespace(char[] ch, int start, int length) voidinsertException(SAXException exception) voidnotationDecl(String name, String publicId, String systemId) voidprocessingInstruction(String target, String data) resolveEntity(String publicId, String systemId) voidskippedEntity(String name) voidvoidvoidvoidstartElement(String uri, String localName, String qName, Attributes atts) voidstartEntity(String name) voidstartPrefixMapping(String prefix, String uri) voidunparsedEntityDecl(String name, String publicId, String systemId, String notationName) voidMethods inherited from class org.frankframework.xml.FullXmlFilter
setContentHandler, setParent, setParentsLexicalHandlerMethods inherited from class org.xml.sax.helpers.XMLFilterImpl
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, parse, parse, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
ExceptionInsertingFilter
-
-
Method Details
-
insertException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classXMLFilterImpl- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classXMLFilterImpl- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classXMLFilterImpl- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classXMLFilterImpl- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classXMLFilterImpl- Throws:
SAXException
-
comment
- Specified by:
commentin interfaceLexicalHandler- Overrides:
commentin classFullXmlFilter- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Overrides:
startCDATAin classFullXmlFilter- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Overrides:
endCDATAin classFullXmlFilter- Throws:
SAXException
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Overrides:
startDTDin classFullXmlFilter- Throws:
SAXException
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Overrides:
endDTDin classFullXmlFilter- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Overrides:
startEntityin classFullXmlFilter- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Overrides:
endEntityin classFullXmlFilter- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classXMLFilterImpl- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classXMLFilterImpl- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Overrides:
warningin classXMLFilterImpl- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Overrides:
errorin classXMLFilterImpl- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Overrides:
fatalErrorin classXMLFilterImpl- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classXMLFilterImpl- Throws:
SAXException
-
notationDecl
- Specified by:
notationDeclin interfaceDTDHandler- Overrides:
notationDeclin classXMLFilterImpl- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Overrides:
processingInstructionin classXMLFilterImpl- Throws:
SAXException
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver- Overrides:
resolveEntityin classXMLFilterImpl- Throws:
SAXExceptionIOException
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Overrides:
skippedEntityin classXMLFilterImpl- Throws:
SAXException
-
unparsedEntityDecl
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException - Specified by:
unparsedEntityDeclin interfaceDTDHandler- Overrides:
unparsedEntityDeclin classXMLFilterImpl- Throws:
SAXException
-