Class MethodFilterInterceptor

java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.MethodFilterInterceptor
All Implemented Interfaces:
Serializable, ConditionalInterceptor, Interceptor
Direct Known Subclasses:
ConversionErrorInterceptor, DefaultWorkflowInterceptor, ExecuteAndWaitInterceptor, ParametersInterceptor, PrepareInterceptor, TokenInterceptor, ValidationInterceptor

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.

Settable parameters are as follows:
  • excludeMethods - method names to be excluded from interceptor processing
  • includeMethods - method names to be included in interceptor processing

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
Author:
Alexandru Popescu, Rainer Hermanns
See Also:
  • Field Details

    • excludeMethods

      protected Set<String> excludeMethods
    • includeMethods

      protected Set<String> includeMethods
  • Constructor Details

    • MethodFilterInterceptor

      public MethodFilterInterceptor()
  • Method Details