Enum PersistentLicenseCache.Source
java.lang.Object
java.lang.Enum<PersistentLicenseCache.Source>
org.codehaus.mojo.license.download.PersistentLicenseCache.Source
- All Implemented Interfaces:
Serializable, Comparable<PersistentLicenseCache.Source>
- Enclosing class:
PersistentLicenseCache
Where the text of a license came from.
- Since:
- 2.8.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn entry younger than the time to live; no request was made.A response from the server.An expired entry that the server confirmed with304 Not Modified.An expired entry used because the server could not be reached or refused the request. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static PersistentLicenseCache.Source[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CACHE
An entry younger than the time to live; no request was made. -
REVALIDATED
An expired entry that the server confirmed with304 Not Modified. -
STALE
An expired entry used because the server could not be reached or refused the request. -
NETWORK
A response from the server.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-