Package org.refcodes.net
Enum CookieAttribute
- java.lang.Object
-
- java.lang.Enum<CookieAttribute>
-
- org.refcodes.net.CookieAttribute
-
- All Implemented Interfaces:
Serializable
,Comparable<String>
,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 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>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CookieAttribute
fromKey(String aKey)
From key.String
getKey()
static CookieAttribute
valueOf(String name)
Returns the enum constant of this type with the specified name.static CookieAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECURE
public static final CookieAttribute SECURE
-
PATH
public static final CookieAttribute PATH
-
DOMAIN
public static final CookieAttribute DOMAIN
-
EXPIRES
public static final CookieAttribute EXPIRES
-
HTTPONLY
public static final CookieAttribute HTTPONLY
-
VERSION
public static final CookieAttribute VERSION
-
MAX_AGE
public static final CookieAttribute MAX_AGE
Internet Explorer (ie6, ie7, and ie8) does not support "MAX-AGE" , while (mostly) all browsers supportEXPIRES
.
-
-
Method Detail
-
values
public static CookieAttribute[] 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 (CookieAttribute c : CookieAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CookieAttribute 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 nameNullPointerException
- if the argument is null
-
getKey
public String getKey()
- Specified by:
getKey
in interfaceorg.refcodes.mixin.KeyAccessor<String>
-
fromKey
public static CookieAttribute fromKey(String aKey)
From key.- Parameters:
aKey
- the key- Returns:
- the cookie attribute
-
-