API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. ResponseCache View Source
Author(s)
Yingxian Wang
Since
1.5
Version
1.1, 03/09/22
Serial
Hierarchy
 Object
      ResponseCache
Implements
Subclasses
Description
publicabstract abstract class ResponseCache
  Represents implementations of URLConnection caches.
See also:   
Constructors
public ResponseCache ()
Methods
Hide/Show inherited methods
publicabstract CacheResponse get (URI uri, String rqstMethod, Map<String, List<String>> rqstHeaders) throws IOException
  Retrieve the cached response based on the requesting uri, request method and request headers.
publicstaticsynchronized ResponseCache getDefault ()
  Gets the system-wide response cache.
publicabstract CacheRequest put (URI uri, URLConnection conn) throws IOException
  The protocol handler calls this method after a resource has been retrieved, and the ResponseCache must decide whether or not to store the resource in its cache.
publicstaticsynchronized void setDefault (ResponseCache responseCache)
  Sets (or unsets) the system-wide cache.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar