Class BrowserTabInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.BrowserTabInterceptor
- All Implemented Interfaces:
Serializable,ConditionalInterceptor,Interceptor
If the action implements BrowserTabAware, sets tab id from cookies. The requesting web page must be set up for this
to be correct. See
ServletLibrary#getBrowserTabId.
Interceptor parameters
- disabled
- If true, all processing is disabled. Defaults to false.
Extending the interceptor
This can't be usefully extended.
Example code
@InterceptorRefs({
@InterceptorRef(value="browserTab"),
@InterceptorRef(value="defaultStack")
})
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintercept(ActionInvocation invocation) voidsetDisabled(boolean disabled) Methods inherited from class org.apache.struts2.interceptor.AbstractInterceptor
destroy, init, setDisabled, shouldIntercept
-
Constructor Details
-
BrowserTabInterceptor
public BrowserTabInterceptor()
-
-
Method Details
-
getDisabled
public boolean getDisabled() -
setDisabled
public void setDisabled(boolean disabled) -
intercept
- Specified by:
interceptin interfaceInterceptor- Specified by:
interceptin classAbstractInterceptor- Throws:
Exception
-