CacheRequest


CacheRequest java.net

Java 5.0

When a URLStreamHandler reads a network resource, it should call the put( ) method of the currently installed ResponseCache , if there is one. If the cache wants to save a local copy of the resource, it will return a CacheRequest object to the URLStreamHandler . The handler should then write the resource to the OutputStream returned by the getBody( ) method.

See also CacheResponse . This class is used by the implementors of URLStreamHandler , not by casual users of the java.net package.

 public abstract class  CacheRequest  {  // Public Constructors  public  CacheRequest  ( );  // Public Instance Methods  public abstract void  abort  ( );        public abstract java.io.OutputStream  getBody  ( ) throws java.io.IOException;   } 

Returned By

ResponseCache.put( )



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