|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.core.filters.AbstractHttpFilter
com.atlassian.core.filters.cache.AbstractCachingFilter
public abstract class AbstractCachingFilter
Uses a list of caching strategies provided by the subclass, applying the first one which matches. After the caching headers are applied (or not, if no strategies match), the request is processed as normal.
CachingStrategy| Constructor Summary | |
|---|---|
AbstractCachingFilter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Default implementation which does nothing. |
void |
doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
Before processing the filter chain, iterates through the caching strategies returned by getCachingStrategies() and applies the first one that matches. |
protected abstract CachingStrategy[] |
getCachingStrategies()
Subclasses should return an array of caching strategies to use. |
void |
init(javax.servlet.FilterConfig filterConfig)
Default implementation which does nothing. |
| 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 |
|---|
public AbstractCachingFilter()
| Method Detail |
|---|
public final void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws java.io.IOException,
javax.servlet.ServletException
getCachingStrategies() and applies the first one that matches.
doFilter in class AbstractHttpFilterjava.io.IOException
javax.servlet.ServletExceptionFilter.doFilter(ServletRequest, ServletResponse, FilterChain)protected abstract CachingStrategy[] getCachingStrategies()
public final void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
AbstractHttpFilter
init in interface javax.servlet.Filterinit in class AbstractHttpFilterjavax.servlet.ServletExceptionpublic final void destroy()
AbstractHttpFilter
destroy in interface javax.servlet.Filterdestroy in class AbstractHttpFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||