Class AbstractSetterInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.misc.AbstractSetterInterceptor
- All Implemented Interfaces:
Interceptor
- Direct Known Subclasses:
SetHeaderInterceptor,SetPropertyInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
FieldsFields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringevaluateExpression(org.springframework.expression.spel.support.StandardEvaluationContext evalCtx) protected StringevaluateSingleExpression(org.springframework.expression.spel.support.StandardEvaluationContext evalCtx, String expression) booleangetName()getValue()handleRequest(Exchange exc) handleResponse(Exchange exc) voidsetIfAbsent(boolean ifAbsent) voidprotected abstract voidsetValue(Exchange exchange, Interceptor.Flow flow, String evaluatedValue) voidprotected abstract booleanshouldSetValue(Exchange exchange, Interceptor.Flow flow) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, getShortDescription, handleAbort, init, init, setDisplayName, setFlow
-
Field Details
-
name
-
value
-
ifAbsent
protected boolean ifAbsent
-
-
Constructor Details
-
AbstractSetterInterceptor
public AbstractSetterInterceptor()
-
-
Method Details
-
shouldSetValue
-
setValue
-
evaluateExpression
protected String evaluateExpression(org.springframework.expression.spel.support.StandardEvaluationContext evalCtx) -
evaluateSingleExpression
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-
setIfAbsent
public void setIfAbsent(boolean ifAbsent) -
getIfAbsent
public boolean getIfAbsent() -
setName
-
getName
-
setValue
-
getValue
-