/[classpath]/classpath/java/net/URLConnection.java
ViewVC logotype

Diff of /classpath/java/net/URLConnection.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by rao, Wed Mar 15 23:46:18 2000 UTC revision 1.6 by jewel, Fri Aug 10 23:54:28 2001 UTC
# Line 138  protected boolean doInput; Line 138  protected boolean doInput;
138  protected boolean doOutput;  protected boolean doOutput;
139    
140  /**  /**
141    * Determines whether or not caches should be used for this URL.    * If this flag is set, the protocol is allowed to cache data whenever
142    * Setting this to true does not guarantee that caching will take place,    * it can (caching is not guaranteed). If it is not set, the protocol must a get a fresh copy of
143    * only that caching will take place if possible    * the data.
144      * <p>
145      * This field is set by the setUseCaches method and returned by the
146      * getUseCaches method.
147      *
148      * Its default value is that determined by the last invocation of
149      * setDefaultUseCaches
150      *
151    */    */
152  protected boolean useCaches;  protected boolean useCaches;
153    
# Line 359  URLConnection(URL url) Line 366  URLConnection(URL url)
366    *    *
367    * @return true if caches will be used, false otherwise    * @return true if caches will be used, false otherwise
368    */    */
369  public static boolean  public boolean
370  getDefaultUseCaches()  getDefaultUseCaches()
371  {  {
372    return(def_use_caches);    return(def_use_caches);
# Line 373  getDefaultUseCaches() Line 380  getDefaultUseCaches()
380    *    *
381    * @param use true to use caches if possible by default, false otherwise    * @param use true to use caches if possible by default, false otherwise
382    */    */
383  public static synchronized void  public synchronized void
384  setDefaultUseCaches(boolean use)  setDefaultUseCaches(boolean use)
385  {  {
386    def_use_caches = use;    def_use_caches = use;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26