com.opensymphony.xwork2.interceptor

## Interface ConditionalInterceptor

- All Superinterfaces:
    Interceptor, Serializable
  All Known Implementing Classes:
    AbstractInterceptor, ActionMappingParametersInterceptor, AliasInterceptor, AnnotationParameterFilterInterceptor, AnnotationValidationInterceptor, AnnotationWorkflowInterceptor, ChainingInterceptor, CheckboxInterceptor, ClearSessionInterceptor, CoepInterceptor, ConversionErrorInterceptor, CookieInterceptor, CookieProviderInterceptor, CoopInterceptor, CreateSessionInterceptor, CspInterceptor, DateTextFieldInterceptor, DebuggingInterceptor, DefaultWorkflowInterceptor, ExceptionMappingInterceptor, ExecuteAndWaitInterceptor, FetchMetadataInterceptor, FileUploadInterceptor, I18nInterceptor, LoggingInterceptor, MessageStoreInterceptor, MethodFilterInterceptor, MockInterceptor, ModelDrivenInterceptor, MultiselectInterceptor, NoOpInterceptor, ParameterFilterInterceptor, ParameterRemoverInterceptor, ParametersInterceptor, PrepareInterceptor, RolesInterceptor, ScopedModelDrivenInterceptor, ScopeInterceptor, ServletConfigInterceptor, StaticParametersInterceptor, StrutsConversionErrorInterceptor, TokenInterceptor, TokenSessionStoreInterceptor, ValidationInterceptor

      public interface ConditionalInterceptor
      extends Interceptor

  A marking interface, when implemented allows to conditionally execute a given interceptor within the current action invocation.
  Since:
    Struts 6.1.1

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `shouldIntercept(ActionInvocation invocation)` Determines if a given interceptor should be executed in the current processing of action invocation.

    - ### Methods inherited from interface com.opensymphony.xwork2.interceptor.Interceptor

      `destroy, init, intercept`

- - ### Method Detail

    - #### shouldIntercept

          boolean shouldIntercept(ActionInvocation invocation)

      Determines if a given interceptor should be executed in the current processing of action invocation.
      Parameters:
        `invocation` - current `ActionInvocation` to determine if the interceptor should be executed
      Returns:
        true if the given interceptor should be included in the current action invocation
      Since:
        6.1.1

Copyright © 2000–2023 Apache Software Foundation. All rights reserved.