com.atlassian.confluence.web.filter
Class DropIfNotSetupFilter

java.lang.Object
  extended by com.atlassian.core.filters.AbstractHttpFilter
      extended by com.atlassian.confluence.web.filter.DropIfNotSetupFilter
All Implemented Interfaces:
javax.servlet.Filter

public class DropIfNotSetupFilter
extends com.atlassian.core.filters.AbstractHttpFilter

USE WITH CAUTION! This filter will drop any request that comes in when Confluence is not finished setting up. To prevent this from dropping valid requests ensure that the filter url mapping maps to exactly the request you want to drop.


Constructor Summary
DropIfNotSetupFilter()
           
 
Method Summary
 void destroy()
           
protected  void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class com.atlassian.core.filters.AbstractHttpFilter
doFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropIfNotSetupFilter

public DropIfNotSetupFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Overrides:
init in class com.atlassian.core.filters.AbstractHttpFilter
Throws:
javax.servlet.ServletException

doFilter

protected void doFilter(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response,
                        javax.servlet.FilterChain filterChain)
                 throws java.io.IOException,
                        javax.servlet.ServletException
Specified by:
doFilter in class com.atlassian.core.filters.AbstractHttpFilter
Throws:
java.io.IOException
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter
Overrides:
destroy in class com.atlassian.core.filters.AbstractHttpFilter


Copyright © 2003-2014 Atlassian. All Rights Reserved.