Class DisableParams

java.lang.Object
org.apache.struts2.interceptor.DisableParams
All Implemented Interfaces:
Serializable, InterceptorParams
Direct Known Subclasses:
UploadPolicy

public class DisableParams extends Object implements InterceptorParams
Opt-in support for the disabled interceptor parameter.

Interceptors implementing WithLazyParams must have their params holder extend this class to support <param name="disabled">...</param>; there is deliberately no fallback to the interceptor instance, which would reintroduce shared mutable state.

Since:
7.3.0
See Also:
  • Field Details

  • Constructor Details

    • DisableParams

      public DisableParams()
    • DisableParams

      protected DisableParams(DisableParams other)
  • Method Details

    • setDisabled

      public void setDisabled(String disable)
      Parameters:
      disable - if true, execution of the interceptor is skipped for this invocation
    • isDisabled

      public boolean isDisabled()