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 boolean |
applyInterceptor(ActionInvocation invocation)
Deprecated.
|
protected abstract String |
doIntercept(ActionInvocation invocation)
Deprecated.
Subclasses must override to implement the interceptor logic.
|
protected String |
doIntercept(ActionInvocation invocation)
Deprecated.
|
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, shouldInterceptdestroy, init, setDisabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadaptadaptdestroy, initpublic void setExcludeMethods(String excludeMethods)
public void setIncludeMethods(String includeMethods)
public String intercept(ActionInvocation invocation) throws Exception
AbstractInterceptorintercept in class AbstractInterceptorExceptionprotected boolean applyInterceptor(ActionInvocation invocation)
protected boolean applyInterceptor(ActionInvocation invocation)
protected abstract String doIntercept(ActionInvocation invocation) throws Exception
invocation - the action invocationException - in case of any errorsprotected String doIntercept(ActionInvocation invocation) throws Exception
ExceptionCopyright © 2000–2026 Apache Software Foundation. All rights reserved.