public interface CachingPolicy
| Modifier and Type | Method and Description |
|---|---|
boolean |
isResponseCacheable(org.springframework.http.HttpRequest request,
org.springframework.http.client.ClientHttpResponse response)
Determine if the
ClientHttpResponse gotten from the origin is a
cacheable response. |
boolean |
isServableFromCache(org.springframework.http.HttpRequest request)
Determines if the given
HttpRequest is allowed to be served
from cache. |
boolean isResponseCacheable(org.springframework.http.HttpRequest request,
org.springframework.http.client.ClientHttpResponse response)
ClientHttpResponse gotten from the origin is a
cacheable response.request - The request that generated an origin hit.response - The response from the origin.boolean isServableFromCache(org.springframework.http.HttpRequest request)
HttpRequest is allowed to be served
from cache.request - The request to check.Copyright © 2014. All rights reserved.