Save This Page
Home » xwork-2.1.1-src » com.opensymphony.xwork2.interceptor » [javadoc | source]
com.opensymphony.xwork2.interceptor
abstract public class: MethodFilterInterceptor [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.interceptor.AbstractInterceptor
      com.opensymphony.xwork2.interceptor.MethodFilterInterceptor

All Implemented Interfaces:
    Interceptor

Direct Known Subclasses:
    PrepareInterceptor, ParametersInterceptor, DefaultWorkflowInterceptor, ValidationInterceptor

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.

Settable parameters are as follows:

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:

Field Summary
protected transient  Logger log     
protected  Set excludeMethods     
protected  Set includeMethods     
Method from com.opensymphony.xwork2.interceptor.MethodFilterInterceptor Summary:
applyInterceptor,   doIntercept,   getExcludeMethodsSet,   getIncludeMethodsSet,   intercept,   setExcludeMethods,   setIncludeMethods
Methods from com.opensymphony.xwork2.interceptor.AbstractInterceptor:
destroy,   init,   intercept
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.interceptor.MethodFilterInterceptor Detail:
 protected boolean applyInterceptor(ActionInvocation invocation) 
 abstract protected String doIntercept(ActionInvocation invocation) throws Exception
    Subclasses must override to implement the interceptor logic.
 public Set getExcludeMethodsSet() 
 public Set getIncludeMethodsSet() 
 public String intercept(ActionInvocation invocation) throws Exception 
 public  void setExcludeMethods(String excludeMethods) 
 public  void setIncludeMethods(String includeMethods)