Class AbortInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.flow.AbstractFlowInterceptor
com.predic8.membrane.core.interceptor.flow.AbortInterceptor
- All Implemented Interfaces:
Interceptor
- Description
- Interceptors are usually applied to requests and responses. In case of errors, interceptors can initiate the abort flow to safely shut down Membrane. By nesting interceptors into an <abort> Element you can limit their application to abort flows only.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
Fields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name, router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleRequest(Exchange exc) (Yes, this needs to be handled in handleREQUEST.)Methods inherited from class com.predic8.membrane.core.interceptor.flow.AbstractFlowInterceptor
getInterceptors, init, setInterceptorsMethods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, getShortDescription, handleAbort, handleResponse, init, setDisplayName, setFlow
-
Constructor Details
-
AbortInterceptor
public AbortInterceptor()
-
-
Method Details
-
handleRequest
(Yes, this needs to be handled in handleREQUEST.)- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-