Class BrowserTabInterceptor
java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.BrowserTabInterceptor
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor
,Serializable
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
None
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 TypeMethodDescriptionboolean
intercept
(com.opensymphony.xwork2.ActionInvocation invocation) void
setDisabled
(boolean disabled) Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor
destroy, init
-
Constructor Details
-
BrowserTabInterceptor
public BrowserTabInterceptor()
-
-
Method Details
-
getDisabled
public boolean getDisabled() -
setDisabled
public void setDisabled(boolean disabled) -
intercept
- Specified by:
intercept
in interfacecom.opensymphony.xwork2.interceptor.Interceptor
- Specified by:
intercept
in classcom.opensymphony.xwork2.interceptor.AbstractInterceptor
- Throws:
Exception
-