com.atlassian.core.filters.cache
Interface CachingStrategy

All Known Implementing Classes:
JspCachingStrategy

public interface CachingStrategy

A strategy for the AbstractCachingFilter.

If an implementation returns true from matches(HttpServletRequest), the filter will call setCachingHeaders(HttpServletResponse) for the strategy to apply the relevant caching headers.

Since:
4.0
See Also:
AbstractCachingFilter

Method Summary
 boolean matches(javax.servlet.http.HttpServletRequest request)
          Returns true if the given request should be handled by this caching strategy.
 void setCachingHeaders(javax.servlet.http.HttpServletResponse response)
          Sets the relevant caching headers for the response.
 

Method Detail

matches

boolean matches(javax.servlet.http.HttpServletRequest request)
Returns true if the given request should be handled by this caching strategy.


setCachingHeaders

void setCachingHeaders(javax.servlet.http.HttpServletResponse response)
Sets the relevant caching headers for the response.



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.