public static enum CachingURLResourceHandle.CachingMode extends Enum<CachingURLResourceHandle.CachingMode>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final CachingURLResourceHandle.CachingMode PreferCache
public static final CachingURLResourceHandle.CachingMode PreferRemote
public static CachingURLResourceHandle.CachingMode[] values()
for (CachingURLResourceHandle.CachingMode c : CachingURLResourceHandle.CachingMode.values()) System.out.println(c);
public static CachingURLResourceHandle.CachingMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 aQute SARL. All Rights Reserved.