Class ExceptionInterceptor
- java.lang.Object
-
- org.smooks.engine.delivery.interceptor.AbstractInterceptorVisitor
-
- org.smooks.engine.delivery.interceptor.ExceptionInterceptor
-
- All Implemented Interfaces:
ContentHandler,DOMElementVisitor,DOMVisitAfter,DOMVisitBefore,DOMVisitor,InterceptorVisitor,AfterVisitor,BeforeVisitor,ChildrenVisitor,ElementVisitor,SaxNgVisitor,Visitor
public class ExceptionInterceptor extends AbstractInterceptorVisitor implements ElementVisitor, DOMElementVisitor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.smooks.engine.delivery.interceptor.AbstractInterceptorVisitor
AbstractInterceptorVisitor.Invocation<T extends Visitor>, AbstractInterceptorVisitor.VisitAfterInvocation, AbstractInterceptorVisitor.VisitBeforeInvocation, AbstractInterceptorVisitor.VisitChildElementInvocation, AbstractInterceptorVisitor.VisitChildTextInvocation
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanterminateOnVisitorExceptionprotected StringvisitAfterExceptionMessageprotected StringvisitBeforeExceptionMessageprotected StringvisitChildTextExceptionMessage-
Fields inherited from class org.smooks.engine.delivery.interceptor.AbstractInterceptorVisitor
applicationContext, invocationTargetCache, target, visitAfterInvocation, visitBeforeInvocation, visitChildElementInvocation, visitChildTextInvocation, visitorBinding
-
-
Constructor Summary
Constructors Constructor Description ExceptionInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostConstruct()voidvisitAfter(Element element, ExecutionContext executionContext)Visits the end of anElement.voidvisitBefore(Element element, ExecutionContext executionContext)Visits the beginning of anElement.voidvisitChildElement(Element childElement, ExecutionContext executionContext)Visits a childElement.voidvisitChildText(CharacterData characterData, ExecutionContext executionContext)Visits the character data of anElement.-
Methods inherited from class org.smooks.engine.delivery.interceptor.AbstractInterceptorVisitor
getTarget, getVisitorBinding, intercept, setVisitorBinding
-
-
-
-
Field Detail
-
terminateOnVisitorException
protected boolean terminateOnVisitorException
-
visitBeforeExceptionMessage
protected String visitBeforeExceptionMessage
-
visitAfterExceptionMessage
protected String visitAfterExceptionMessage
-
visitChildTextExceptionMessage
protected String visitChildTextExceptionMessage
-
-
Method Detail
-
postConstruct
@PostConstruct public void postConstruct()
-
visitBefore
public void visitBefore(Element element, ExecutionContext executionContext)
Description copied from interface:BeforeVisitorVisits the beginning of anElement.- Specified by:
visitBeforein interfaceBeforeVisitor- Specified by:
visitBeforein interfaceDOMVisitBefore- Parameters:
element- theElementrepresenting the beginning of the fragment. TheElement's ancestors are traversable unless the global configuration parametermaintain.element.stackis set to false. TheElement's child nodes are not traversable.executionContext- the currentExecutionContext
-
visitAfter
public void visitAfter(Element element, ExecutionContext executionContext)
Description copied from interface:AfterVisitorVisits the end of anElement.- Specified by:
visitAfterin interfaceAfterVisitor- Specified by:
visitAfterin interfaceDOMVisitAfter- Parameters:
element- theElementrepresenting the end of the fragment. TheElement's ancestors are traversable unless the global configuration parametermaintain.element.stackis set to false. TheElement's child nodes are traversable if one of the following conditions are met:max.node.depthglobal config parameter is set to 0 or greater than 1, or- this
AfterVisitorimplementsParameterizedVisitor.getMaxNodeDepth()which returns an integer greater than 1
executionContext- the currentExecutionContext
-
visitChildText
public void visitChildText(CharacterData characterData, ExecutionContext executionContext)
Description copied from interface:ChildrenVisitorVisits the character data of anElement. This method is invoked once for each chunk of character data. A shortcut for collecting character data is to annotate theSaxNgVisitorimplementation withorg.smooks.engine.delivery.sax.annotation.StreamResultWriter, or stash the character data in aTextAccumulatorMementoand restore theTextAccumulatorMementoinAfterVisitor.visitAfter(Element, ExecutionContext).- Specified by:
visitChildTextin interfaceChildrenVisitor- Parameters:
characterData- thenodewhich includes character data but not any childElements. TheElement's ancestors are traversable unless the global configuration parametermaintain.element.stackis set to false.executionContext- the currentExecutionContext
-
visitChildElement
public void visitChildElement(Element childElement, ExecutionContext executionContext)
Description copied from interface:ChildrenVisitorVisits a childElement. This method is invoked once for each childElement.- Specified by:
visitChildElementin interfaceChildrenVisitor- Parameters:
childElement- the childElementElement's ancestors are traversable unless the global configuration parametermaintain.element.stackis set to false. TheElement's child nodes are not traversable.executionContext- the currentExecutionContext
-
-