com.atlassian.cache.servlet.handler
Interface CacheExpirationHandler

All Known Implementing Classes:
LastModifiedCacheExpirationHandler

public interface CacheExpirationHandler

Defines an interface that allows you to determine if a cache should be expired or not.


Method Summary
 boolean checkRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Check whether we need to generate a response for this request.
 void modified()
          Call this if you want to alert the handler that the content has been modified.
 

Method Detail

checkRequest

boolean checkRequest(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
Check whether we need to generate a response for this request. Set the necessary headers on the response, and if we don't need to provide content, set the response status to 304. If this method returns true, the caller should not perform any more processing on the request.

Returns:
true if we don't need to provide any data to satisfy this request

modified

void modified()
Call this if you want to alert the handler that the content has been modified.



Atlassian Cache Servlet is developed by Atlassian Software Systems.