Package org.apache.struts2.interceptor
Class DisableParams
java.lang.Object
org.apache.struts2.interceptor.DisableParams
- All Implemented Interfaces:
Serializable,InterceptorParams
- Direct Known Subclasses:
UploadPolicy
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the parameter bound tosetDisabled(String). -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.interceptor.InterceptorParams
unresolved
-
Field Details
-
DISABLED_PARAM
Name of the parameter bound tosetDisabled(String).- Since:
- 7.3.0
- See Also:
-
-
Constructor Details
-
DisableParams
public DisableParams() -
DisableParams
-
-
Method Details
-
setDisabled
- Parameters:
disable- iftrue, execution of the interceptor is skipped for this invocation
-
isDisabled
public boolean isDisabled()
-