# Package org.apache.struts2.interceptor

package org.apache.struts2.interceptor
Interceptor classes.

- Related Packages
  Package
  Description
  org.apache.struts2
  Main XWork interfaces and classes.
  org.apache.struts2.interceptor.annotations
  Interceptor annotations.
  org.apache.struts2.interceptor.csp
  org.apache.struts2.interceptor.debugging
  org.apache.struts2.interceptor.exec
  org.apache.struts2.interceptor.httpmethod
  org.apache.struts2.interceptor.parameter
  org.apache.struts2.interceptor.servlet
  org.apache.struts2.interceptor.validation
- Class
  Description
  AbstractFileUploadInterceptor
  AbstractInterceptor
  Provides default implementations of optional lifecycle methods
  ActionFileUploadInterceptor
  Interceptor that is based off of `MultiPartRequestWrapper`, which is automatically applied for any request that includes a file when the support for multi-part request is enabled, see Disabling file upload.
  ActionMappingParametersInterceptor
  AliasInterceptor
  The aim of this Interceptor is to alias a named parameter to a different named parameter.
  ChainingInterceptor
  CheckboxInterceptor
  ClearSessionInterceptor
  CoepInterceptor
  Interceptor that implements Cross-Origin Embedder Policy on incoming requests used to protect a document from loading any non-same-origin resources which don't explicitly grant the document permission to be loaded.
  ConditionalInterceptor
  A marking interface, when implemented allows to conditionally execute a given interceptor within the current action invocation.
  ConversionErrorInterceptor
  ConversionErrorInterceptor adds conversion errors from the ActionContext to the Action's field errors.
  CookieInterceptor
  CookieProvider
  Action can create cookies which will be stored in response
  CookieProviderInterceptor
  Allows actions to send cookies to client, action must implement `CookieProvider` You must reference this interceptor in your default stack or in action's stack, see example below.
  CoopInterceptor
  Interceptor that implements Cross-Origin Opener Policy on incoming requests.
  CreateSessionInterceptor
  DateTextFieldInterceptor
  DateTextFieldInterceptor.DateWord
  DefaultWorkflowInterceptor
  ExceptionHolder
  A simple wrapper around an exception, providing an easy way to print out the stack trace of the exception as well as a way to get a handle on the exception itself.
  ExceptionMappingInterceptor
  ExecuteAndWaitInterceptor
  FetchMetadataInterceptor
  Interceptor that implements Fetch Metadata policy on incoming requests used to protect against CSRF, XSSI, and cross-origin information leaks.
  I18nInterceptor
  An interceptor that handles setting the locale specified in a session as the locale for the current action request.
  I18nInterceptor.LocaleHandler
  Uses to handle reading/storing Locale from/in different locations
  I18nInterceptor.Storage
  Interceptor
  LoggingInterceptor
  MessageStoreInterceptor
  MessageStorePreResultListener
  This listener is used by `MessageStoreInterceptor` to store messages in HttpSession just before result will be executed.
  MethodFilterInterceptor
  MethodFilterInterceptorUtil
  Utility class contains common methods used by `MethodFilterInterceptor`.
  ModelDrivenInterceptor
  Watches for `ModelDriven` actions and adds the action's model on to the value stack.
  ModelDrivenInterceptor.RefreshModelBeforeResult
  Refreshes the model instance on the value stack, if it has changed
  MultiselectInterceptor
  Just as the CheckboxInterceptor checks that if only the hidden field is present, so too does this interceptor.
  NoOpInterceptor
  Interceptor that does nothing, used in the "empty" stack
  ParameterRemoverInterceptor
  This is a simple XWork interceptor that allows parameters (matching one of the paramNames attribute csv value) to be removed from the parameter map if they match a certain value (matching one of the paramValues attribute csv value), before they are set on the action.
  PrefixMethodInvocationUtil
  A utility class for invoking prefixed methods in action class.
  PrepareInterceptor
  This interceptor calls `prepare()` on actions which implement `Preparable`.
  PreResultListener
  PreResultListeners may be registered with an `ActionInvocation` to get a callback after the `Action` has been executed but before the `Result` is executed.
  PrincipalProxy
  Proxy interface used together with PrincipalAware interface.
  ResourceIsolationPolicy
  Interface for the resource isolation policies to be used for fetch metadata checks.
  RolesInterceptor
  ScopedModelDriven<T>
  Adds the ability to set a model, probably retrieved from a given state.
  ScopedModelDrivenInterceptor
  An interceptor that enables scoped model-driven actions.
  ScopeInterceptor
  ServletConfigInterceptor
  StaticParametersInterceptor
  This interceptor populates the action with the static parameters defined in the action configuration.
  StrutsConversionErrorInterceptor
  StrutsResourceIsolationPolicy
  Default resource isolation policy used in `FetchMetadataInterceptor` that implements the `ResourceIsolationPolicy` interface.
  TokenInterceptor
  TokenSessionStoreInterceptor
  ValidationAware
  ValidationAware classes can accept Action (class level) or field level error messages.
  ValidationErrorAware
  ValidationErrorAware classes can be notified about validation errors before `DefaultWorkflowInterceptor` will return 'inputResultName' result to allow change or not the result name This interface can be only applied to action which already implements `ValidationAware` interface!
  ValidationWorkflowAware
  ValidationWorkflowAware classes can programmatically change result name when errors occurred This interface can be only applied to action which already implements `ValidationAware` interface!
  WithLazyParams
  Interceptors marked with this interface won't be fully initialised during initialisation.
  WithLazyParams.LazyParamInjector