MethodFilterInterceptor
instead.@Deprecated public abstract class MethodFilterInterceptor extends AbstractInterceptor
MethodFilterInterceptor is an abstract Interceptor
used as
a base class for interceptors that will filter execution based on method
names according to specified included/excluded method lists.
NOTE: If method name are available in both includeMethods and excludeMethods, it will be considered as an included method: includeMethods takes precedence over excludeMethods.
Interceptors that extends this capability include:TokenInterceptor
,
TokenSessionStoreInterceptor
,
DefaultWorkflowInterceptor
,
ValidationInterceptor
,
Serialized FormConditionalInterceptor.LegacyAdapter
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
excludeMethods
Deprecated.
|
protected Set<String> |
includeMethods
Deprecated.
|
Constructor and Description |
---|
MethodFilterInterceptor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
applyInterceptor(ActionInvocation invocation)
Deprecated.
|
protected abstract String |
doIntercept(ActionInvocation invocation)
Deprecated.
Subclasses must override to implement the interceptor logic.
|
Set<String> |
getExcludeMethodsSet()
Deprecated.
|
Set<String> |
getIncludeMethodsSet()
Deprecated.
|
String |
intercept(ActionInvocation invocation)
Deprecated.
Override to handle interception
|
void |
setExcludeMethods(String excludeMethods)
Deprecated.
|
void |
setIncludeMethods(String includeMethods)
Deprecated.
|
intercept, shouldIntercept, shouldIntercept
destroy, init, setDisabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adapt
adapt
destroy, init
public void setExcludeMethods(String excludeMethods)
public void setIncludeMethods(String includeMethods)
public String intercept(ActionInvocation invocation) throws Exception
AbstractInterceptor
intercept
in class AbstractInterceptor
Exception
protected boolean applyInterceptor(ActionInvocation invocation)
protected abstract String doIntercept(ActionInvocation invocation) throws Exception
invocation
- the action invocationException
- in case of any errorsCopyright © 2000–2024 Apache Software Foundation. All rights reserved.