info.magnolia.module.cache.filter
Class CachedRedirect

java.lang.Object
  extended by info.magnolia.module.cache.filter.CachedRedirect
All Implemented Interfaces:
CachedEntry, Serializable

public class CachedRedirect
extends Object
implements CachedEntry, Serializable

Cached redirect contract providing access to the status code and target location.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph
See Also:
Serialized Form

Constructor Summary
CachedRedirect(int statusCode, String location)
           
 
Method Summary
 String getLocation()
           
 int getStatusCode()
           
 void replay(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedRedirect

public CachedRedirect(int statusCode,
                      String location)
Method Detail

getStatusCode

public int getStatusCode()

getLocation

public String getLocation()

replay

public void replay(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response,
                   javax.servlet.FilterChain chain)
            throws IOException,
                   javax.servlet.ServletException
Specified by:
replay in interface CachedEntry
chain - a cache entry might want to delegate to the filter chain, see DelegatingBlobCachedEntry.replay(HttpServletRequest, HttpServletResponse, FilterChain)
Throws:
IOException
javax.servlet.ServletException


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