com.atlassian.confluence.plugins.quickreload
Class QuickReloadFilter

java.lang.Object
  extended by com.atlassian.confluence.plugins.quickreload.QuickReloadFilter
All Implemented Interfaces:
javax.servlet.Filter

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

Filter to quickly return empty data by looking into a cached last contents' (pages') last updated timestamp built by listening to page update event and comment events

There is no login or permission check to make it as fast as possible (no binding to DB conn or querying) so it will leak content ids and their last update timestamp, as they are not sensitive data so it is not a security issue. However the class should be kept as is without adding any extra information to the returned JSON string like page titles.


Constructor Summary
QuickReloadFilter(QuickReloadCaches caches)
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, 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
 

Constructor Detail

QuickReloadFilter

public QuickReloadFilter(QuickReloadCaches caches)
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 request,
                     javax.servlet.ServletResponse response,
                     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

destroy

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.