Returns the cached response corresponding to the specified request. If there is no corresponding cached object, this method returns null. Calculates and check if object still fresh(RFC 7234) otherwise returns null. @see RFC 7234</
(final WebRequest request)
| 299 | * @return the cached response corresponding to the specified request if any |
| 300 | */ |
| 301 | public WebResponse getCachedResponse(final WebRequest request) { |
| 302 | final Entry cachedEntry = getCacheEntry(request); |
| 303 | if (cachedEntry == null) { |
| 304 | return null; |
| 305 | } |
| 306 | return cachedEntry.response_; |
| 307 | } |
| 308 | |
| 309 | /** |
| 310 | * Returns the cached object corresponding to the specified request. If there is |