Package org.wicketstuff.offline.mode
Enum Class OfflineCacheEntry.Cors
- All Implemented Interfaces:
Serializable,Comparable<OfflineCacheEntry.Cors>,Constable
- Enclosing class:
- OfflineCacheEntry
CORS settings to be applied to the service worker request / against the server or the cache
- Author:
- Tobias Soloschenko
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionrequest the server with cors optionno cross orignfrom same origin -
Method Summary
Modifier and TypeMethodDescriptionGets the real name for the cors optionstatic OfflineCacheEntry.CorsReturns the enum constant of this class with the specified name.static OfflineCacheEntry.Cors[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CORS
request the server with cors option -
NO_CORS
no cross orign -
SAME_ORIGIN
from same origin
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getRealName
Gets the real name for the cors option- Returns:
- the real name
-