Class QuickReloadFilter
- java.lang.Object
-
- com.atlassian.confluence.plugins.quickreload.QuickReloadFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class QuickReloadFilter extends 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 eventsThere 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
Constructors Constructor Description QuickReloadFilter(QuickReloadCaches caches)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig filterConfig)
-
-
-
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 interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-