MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / getCachedResponse

Method getCachedResponse

src/main/java/org/htmlunit/Cache.java:301–307  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 6

cleanUpMethod · 0.80
cleanUpMethod · 0.80
getWebResponseMethod · 0.80

Calls 1

getCacheEntryMethod · 0.95

Tested by 1