- All Implemented Interfaces:
Serializable
,Comparable<CookieAttribute>
,Constable
,org.refcodes.mixin.KeyAccessor<String>
public enum CookieAttribute
extends Enum<CookieAttribute>
implements org.refcodes.mixin.KeyAccessor<String>
The Enum CookieAttribute.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor
org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends Object,
B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K, B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends Object> -
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CookieAttribute
From key.getKey()
static CookieAttribute
Returns the enum constant of this class with the specified name.static CookieAttribute[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SECURE
-
PATH
-
DOMAIN
-
EXPIRES
-
HTTPONLY
-
VERSION
-
MAX_AGE
Internet Explorer (ie6, ie7, and ie8) does not support "MAX-AGE" , while (mostly) all browsers supportEXPIRES
.
-
-
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
-
getKey
- Specified by:
getKey
in interfaceorg.refcodes.mixin.KeyAccessor<String>
-
fromKey
From key.- Parameters:
aKey
- the key- Returns:
- the cookie attribute
-