CacheResponse


CacheResponse java.net

Java 5.0

If a ResponseCache holds a local copy of a network resource, it returns a CacheResponse object from the ResponseCache.get( ) method. The resource can then be read from the java.io.InputStream returned by getBody( ) . The protocol response headers are available in the form of java.util.Map from getHeaders( ) .

See also SecureCacheResponse and CacheRequest . Note that this class is intended for use in URLStreamHandler implementations , not by casual users of the java.net package.

 public abstract class  CacheResponse  {  // Public Constructors  public  CacheResponse  ( );  // Public Instance Methods  public abstract java.io.InputStream  getBody  ( ) throws java.io.IOException;      public abstract java.util.Map<String,java.util.List<String>>  getHeaders  ( )      throws java.io.IOException;   } 

Subclasses

SecureCacheResponse

Returned By

ResponseCache.get( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net