com.atlassian.bamboo.ww2
Class BambooFilterDispatcher

java.lang.Object
  extended by com.opensymphony.webwork.dispatcher.FilterDispatcher
      extended by com.atlassian.bamboo.ww2.BambooFilterDispatcher
All Implemented Interfaces:
com.opensymphony.webwork.WebWorkStatics, javax.servlet.Filter

public class BambooFilterDispatcher
extends com.opensymphony.webwork.dispatcher.FilterDispatcher

This filter is used to tag the data stored in ActionContext as created in this HTTP request. ActionContext is ThreadLocal and can be stored without proper cleanup. This can cause a problem if a specific HTTP request processing does not involve ActionContext initialisation - such request will be processed with ActionContext with potentially stale content from other request.


Field Summary
 
Fields inherited from class com.opensymphony.webwork.dispatcher.FilterDispatcher
filterConfig, pathPrefixes
 
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER
 
Constructor Summary
BambooFilterDispatcher()
           
 
Method Summary
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
static boolean isValidActionContext()
           
 
Methods inherited from class com.opensymphony.webwork.dispatcher.FilterDispatcher
afterActionInvocation, beforeActionInvocation, checkUrl, copy, createComponentManager, destroy, findInputStream, findStaticResource, getFilterConfig, getServletContext, init, parse, setupContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooFilterDispatcher

public BambooFilterDispatcher()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Overrides:
doFilter in class com.opensymphony.webwork.dispatcher.FilterDispatcher
Throws:
java.io.IOException
javax.servlet.ServletException

isValidActionContext

public static boolean isValidActionContext()


Copyright © 2010 Atlassian. All Rights Reserved.