Home » xwork-2.1.5 » 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, ValidationInterceptor, DefaultWorkflowInterceptor

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<String> excludeMethods     
protected  Set<String> 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:
clone,   equals,   finalize,   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<String> getExcludeMethodsSet() 
 public Set<String> getIncludeMethodsSet() 
 public String intercept(ActionInvocation invocation) throws Exception 
 public  void setExcludeMethods(String excludeMethods) 
 public  void setIncludeMethods(String includeMethods)