com.atlassian.core.filters.cache
Class JspCachingStrategy

java.lang.Object
  extended by com.atlassian.core.filters.cache.JspCachingStrategy
All Implemented Interfaces:
CachingStrategy

public final class JspCachingStrategy
extends java.lang.Object
implements CachingStrategy

Applies caching headers to ensures JSP responses are not cached by the client. A JSP request is one that has the string ".jsp" somewhere in the request URI.

Since:
4.0

Constructor Summary
JspCachingStrategy()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspCachingStrategy

public JspCachingStrategy()
Method Detail

matches

public final boolean matches(javax.servlet.http.HttpServletRequest request)
Description copied from interface: CachingStrategy
Returns true if the given request should be handled by this caching strategy.

Specified by:
matches in interface CachingStrategy

setCachingHeaders

public final void setCachingHeaders(javax.servlet.http.HttpServletResponse response)
Description copied from interface: CachingStrategy
Sets the relevant caching headers for the response.

Specified by:
setCachingHeaders in interface CachingStrategy


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.