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 Details

    • BrowserTabInterceptor

      public BrowserTabInterceptor()
  • Method Details

    • getDisabled

      public boolean getDisabled()
    • setDisabled

      public void setDisabled(boolean disabled)
    • intercept

      public String intercept(com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
      Specified by:
      intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
      Specified by:
      intercept in class com.opensymphony.xwork2.interceptor.AbstractInterceptor
      Throws:
      Exception