com.atlassian.core.filters.cache
Class JspCachingStrategy
java.lang.Object
com.atlassian.core.filters.cache.JspCachingStrategy
- All Implemented Interfaces:
- CachingStrategy
public final class JspCachingStrategy
- extends 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
|
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 |
JspCachingStrategy
public JspCachingStrategy()
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 © 2015 Atlassian. All rights reserved.