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 |
|
|
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); |
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; |