info.magnolia.module.cache.executor
Class UseCache

java.lang.Object
  extended by info.magnolia.module.cache.executor.AbstractExecutor
      extended by info.magnolia.module.cache.executor.UseCache
All Implemented Interfaces:
CachePolicyExecutor

public class UseCache
extends AbstractExecutor

Serves the content from the cache.

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

Constructor Summary
UseCache()
           
 
Method Summary
protected  void addHeaders(CachedPage cachedEntry, boolean acceptsGzipEncoding, javax.servlet.http.HttpServletResponse response)
          Set the headers in the response object
protected  void processCachedEntry(CachedEntry cached, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void processCacheRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain, Cache cache, CachePolicyResult cachePolicy)
           
protected  void writeContent(javax.servlet.http.HttpServletResponse response, CachedPage cachedEntry, boolean acceptsGzipEncoding)
           
protected  void writePage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CachedPage cachedEntry)
           
 
Methods inherited from class info.magnolia.module.cache.executor.AbstractExecutor
getCacheConfiguration, getCompressionVote, ifModifiedSince, setCacheConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UseCache

public UseCache()
Method Detail

processCacheRequest

public void processCacheRequest(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                javax.servlet.FilterChain chain,
                                Cache cache,
                                CachePolicyResult cachePolicy)
                         throws java.io.IOException,
                                javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

processCachedEntry

protected void processCachedEntry(CachedEntry cached,
                                  javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
                           throws java.io.IOException
Throws:
java.io.IOException

writePage

protected void writePage(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         CachedPage cachedEntry)
                  throws java.io.IOException
Throws:
java.io.IOException

addHeaders

protected void addHeaders(CachedPage cachedEntry,
                          boolean acceptsGzipEncoding,
                          javax.servlet.http.HttpServletResponse response)
Set the headers in the response object


writeContent

protected void writeContent(javax.servlet.http.HttpServletResponse response,
                            CachedPage cachedEntry,
                            boolean acceptsGzipEncoding)
                     throws java.io.IOException
Throws:
java.io.IOException


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