Class BrowserTabInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
com.opensymphony.xwork2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.BrowserTabInterceptor
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.ConditionalInterceptor,com.opensymphony.xwork2.interceptor.Interceptor,Serializable,org.apache.struts2.interceptor.ConditionalInterceptor,org.apache.struts2.interceptor.Interceptor
public class BrowserTabInterceptor
extends com.opensymphony.xwork2.interceptor.AbstractInterceptor
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(javax.servlet.http.Cookie[]).
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ConditionalInterceptor
com.opensymphony.xwork2.interceptor.ConditionalInterceptor.LegacyAdapter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintercept(com.opensymphony.xwork2.ActionInvocation invocation) voidsetDisabled(boolean disabled) Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor
intercept, shouldIntercept, shouldInterceptMethods inherited from class org.apache.struts2.interceptor.AbstractInterceptor
destroy, init, setDisabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.interceptor.Interceptor
destroy, init
-
Constructor Details
-
BrowserTabInterceptor
public BrowserTabInterceptor()
-
-
Method Details
-
getDisabled
public boolean getDisabled() -
setDisabled
public void setDisabled(boolean disabled) -
intercept
- Specified by:
interceptin interfacecom.opensymphony.xwork2.interceptor.Interceptor- Specified by:
interceptin classcom.opensymphony.xwork2.interceptor.AbstractInterceptor- Throws:
Exception
-