info.magnolia.module.cache.filter
Interface CachedEntry

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
CachedError, CachedRedirect, ContentCachedEntry, DelegatingBlobCachedEntry, InMemoryCachedEntry

public interface CachedEntry
extends java.io.Serializable

A cached entry used to store content produced by the filter chain. The cache can be replayed.

Version:
$Revision: $ ($Author: $)

Method Summary
 long getLastModificationTime()
          Produce last modification date of the cache entry.
 java.lang.String getOriginalURL()
          Entry might be required to produce url used to create it in the first place.
 void replay(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
 

Method Detail

replay

void replay(javax.servlet.http.HttpServletRequest request,
            javax.servlet.http.HttpServletResponse response,
            javax.servlet.FilterChain chain)
            throws java.io.IOException,
                   javax.servlet.ServletException
Parameters:
chain - a cache entry might want to delegate to the filter chain, see DelegatingBlobCachedEntry.replay(HttpServletRequest, HttpServletResponse, FilterChain)
Throws:
java.io.IOException
javax.servlet.ServletException

getOriginalURL

java.lang.String getOriginalURL()
Entry might be required to produce url used to create it in the first place.

Returns:
URL that triggered cache entry creation.

getLastModificationTime

long getLastModificationTime()
Produce last modification date of the cache entry. If no other time can be discerned, the time of entry creation should be returned.

Returns:
time when cached entry was last modified. This time should reflect real modification time of the cached content.


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.