public interface HttpResponseCache
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.client.ClientHttpResponse |
cacheAndReturnResponse(org.springframework.http.HttpRequest request,
org.springframework.http.client.ClientHttpResponse response,
Date requestSent,
Date responseReceived)
Store
ClientHttpResponse, if possible, and return it. |
void |
clear() |
void |
evict(org.springframework.http.HttpRequest request) |
CacheEntry |
getCacheEntry(org.springframework.http.HttpRequest request)
Returns a cached response for the given request.
|
void clear()
void evict(org.springframework.http.HttpRequest request)
CacheEntry getCacheEntry(org.springframework.http.HttpRequest request)
request - The request whose associated response is to be returned.null if
this cache contains no entry for the request.org.springframework.http.client.ClientHttpResponse cacheAndReturnResponse(org.springframework.http.HttpRequest request,
org.springframework.http.client.ClientHttpResponse response,
Date requestSent,
Date responseReceived)
throws IOException
ClientHttpResponse, if possible, and return it.request - The request with which the given response is to be associated.response - The response object to be cached.requestSent - When the request was send.responseReceived - When the response was received.IOExceptionCopyright © 2014. All rights reserved.