com.atlassian.bamboo.ww2
Class ValidActionContextMarker

java.lang.Object
  extended by com.atlassian.bamboo.ww2.ValidActionContextMarker
All Implemented Interfaces:
javax.servlet.Filter

public class ValidActionContextMarker
extends java.lang.Object
implements javax.servlet.Filter

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.


Constructor Summary
ValidActionContextMarker()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
static com.opensymphony.xwork.ActionContext getActionContext()
           
static javax.servlet.ServletContext getServletContext()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidActionContextMarker

public ValidActionContextMarker()
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
Throws:
java.io.IOException
javax.servlet.ServletException

getActionContext

@Nullable
public static com.opensymphony.xwork.ActionContext getActionContext()

getServletContext

@Nullable
public static javax.servlet.ServletContext getServletContext()

init

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

destroy

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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.