Class SpringInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.SpringInterceptor
- All Implemented Interfaces:
Interceptor,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SpringInterceptor
extends AbstractInterceptor
implements org.springframework.context.ApplicationContextAware
-
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 TypeMethodDescriptiongetInner()getRefId()voidhandleAbort(Exchange exchange) Called when anyInterceptor.handleRequest(Exchange)orInterceptor.handleResponse(Exchange)later in the chain returnedOutcome.ABORTor threw an exception.handleRequest(Exchange exc) handleResponse(Exchange exc) voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetDisplayName(String name) voidvoidMethods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getFlow, getHelpId, getMessage, getRouter, getRule, init, setFlow
-
Constructor Details
-
SpringInterceptor
public SpringInterceptor()
-
-
Method Details
-
setRefId
- Description
- Spring bean id of the referenced interceptor.
- Example
- myInterceptor
-
getRefId
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-
handleAbort
Description copied from interface:InterceptorCalled when anyInterceptor.handleRequest(Exchange)orInterceptor.handleResponse(Exchange)later in the chain returnedOutcome.ABORTor threw an exception.handleAbort is called in the reverse order of the chain (as handleResponse is).
- Specified by:
handleAbortin interfaceInterceptor- Overrides:
handleAbortin classAbstractInterceptor
-
getDisplayName
- Specified by:
getDisplayNamein interfaceInterceptor- Overrides:
getDisplayNamein classAbstractInterceptor
-
setDisplayName
- Specified by:
setDisplayNamein interfaceInterceptor- Overrides:
setDisplayNamein classAbstractInterceptor
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-
getLongDescription
- Specified by:
getLongDescriptionin interfaceInterceptor- Overrides:
getLongDescriptionin classAbstractInterceptor
-
init
- Specified by:
initin interfaceInterceptor- Overrides:
initin classAbstractInterceptor- Throws:
Exception
-
getInner
-
setInner
-