public class CacheControlHandlerInterceptor
extends HandlerInterceptorAdapter
| Constructor and Description |
|---|
CacheControlHandlerInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createCacheControlHeaderField(CacheControl cacheAnnotation) |
protected CacheControl |
getCacheControlAnnotation(HttpServletRequest request,
HttpServletResponse response,
java.lang.Object handler) |
protected boolean |
isEligibleForCacheControl(HttpServletRequest request,
HttpServletResponse response,
java.lang.Object handler)
Indicates whether the given request and response are eligible for Cache-Control generation.
|
boolean |
preHandle(HttpServletRequest request,
HttpServletResponse response,
java.lang.Object handler) |
public final boolean preHandle(HttpServletRequest request,
HttpServletResponse response,
java.lang.Object handler)
throws java.lang.Exception
java.lang.Exceptionprotected boolean isEligibleForCacheControl(HttpServletRequest request,
HttpServletResponse response,
java.lang.Object handler)
request - the HTTP requestresponse - the HTTP responsehandler - handler (or HandlerMethod)true if eligible; false otherwiseprotected CacheControl getCacheControlAnnotation(HttpServletRequest request, HttpServletResponse response, java.lang.Object handler)
protected java.lang.String createCacheControlHeaderField(CacheControl cacheAnnotation)
Copyright © 2018 SAP SE. All Rights Reserved.