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 Form| Modifier and Type | Field and Description | 
|---|---|
| protected Set<String> | excludeMethods | 
| protected Set<String> | includeMethods | 
| Constructor and Description | 
|---|
| MethodFilterInterceptor() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | applyInterceptor(ActionInvocation invocation) | 
| protected abstract String | doIntercept(ActionInvocation invocation)Subclasses must override to implement the interceptor logic. | 
| Set<String> | getExcludeMethodsSet() | 
| Set<String> | getIncludeMethodsSet() | 
| String | intercept(ActionInvocation invocation)Override to handle interception | 
| void | setExcludeMethods(String excludeMethods) | 
| void | setIncludeMethods(String includeMethods) | 
destroy, init, setDisabled, shouldInterceptpublic void setExcludeMethods(String excludeMethods)
public void setIncludeMethods(String includeMethods)
public String intercept(ActionInvocation invocation) throws Exception
AbstractInterceptorintercept in interface Interceptorintercept in class AbstractInterceptorinvocation - the action invocationActionInvocation.invoke(), or from the interceptor itself.Exception - any system-level error, as defined in Action.execute().protected boolean applyInterceptor(ActionInvocation invocation)
protected abstract String doIntercept(ActionInvocation invocation) throws Exception
invocation - the action invocationException - in case of any errorsCopyright © 2000–2025 Apache Software Foundation. All rights reserved.