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