aQute.lib.deployer.obr
Enum CachingURLResourceHandle.CachingMode

java.lang.Object
  extended by java.lang.Enum<CachingURLResourceHandle.CachingMode>
      extended by aQute.lib.deployer.obr.CachingURLResourceHandle.CachingMode
All Implemented Interfaces:
Serializable, Comparable<CachingURLResourceHandle.CachingMode>
Enclosing class:
CachingURLResourceHandle

public static enum CachingURLResourceHandle.CachingMode
extends Enum<CachingURLResourceHandle.CachingMode>


Enum Constant Summary
PreferCache
          Always use the cached file, if it exists.
PreferRemote
          Download the remote resource if possible, falling back to the cached file if remote fails.
 
Method Summary
static CachingURLResourceHandle.CachingMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CachingURLResourceHandle.CachingMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PreferCache

public static final CachingURLResourceHandle.CachingMode PreferCache
Always use the cached file, if it exists.


PreferRemote

public static final CachingURLResourceHandle.CachingMode PreferRemote
Download the remote resource if possible, falling back to the cached file if remote fails. Subsequently the cached resource will be used.

Method Detail

values

public static CachingURLResourceHandle.CachingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CachingURLResourceHandle.CachingMode c : CachingURLResourceHandle.CachingMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CachingURLResourceHandle.CachingMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2012 aQute SARL. All Rights Reserved.