com.atlassian.confluence.plugin.servlet.filter
Class ActionContextCleanUp

java.lang.Object
  extended by com.atlassian.confluence.plugin.servlet.filter.ActionContextCleanUp
All Implemented Interfaces:
javax.servlet.Filter

public class ActionContextCleanUp
extends Object
implements javax.servlet.Filter

Backport of WebWork 2.2.7 ActionContextCleanUp, with fixes from Struts 2 2.2.1 version.

Since:
3.4

Field Summary
protected  javax.servlet.FilterConfig filterConfig
           
 
Constructor Summary
ActionContextCleanUp()
           
 
Method Summary
protected static void cleanUp(javax.servlet.ServletRequest req)
          Clean up the request of threadlocals if this is the last execution
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterConfig

protected javax.servlet.FilterConfig filterConfig
Constructor Detail

ActionContextCleanUp

public ActionContextCleanUp()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException
See Also:
Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)

cleanUp

protected static void cleanUp(javax.servlet.ServletRequest req)
Clean up the request of threadlocals if this is the last execution

Parameters:
req - The servlet request

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter


Copyright © 2003-2011 Atlassian. All Rights Reserved.