Serializable, Comparable<CookieAttribute>, org.refcodes.mixin.KeyAccessor<String>public enum CookieAttribute extends Enum<CookieAttribute> implements org.refcodes.mixin.KeyAccessor<String>
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 | Description |
|---|---|
DOMAIN |
|
EXPIRES |
|
HTTPONLY |
|
MAX_AGE |
Internet Explorer (ie6, ie7, and ie8) does not support "MAX-AGE" , while
(mostly) all browsers support
EXPIRES. |
PATH |
|
SECURE |
| 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.
|
public static final CookieAttribute SECURE
public static final CookieAttribute PATH
public static final CookieAttribute DOMAIN
public static final CookieAttribute EXPIRES
public static final CookieAttribute HTTPONLY
public static final CookieAttribute MAX_AGE
EXPIRES.public static CookieAttribute[] values()
for (CookieAttribute c : CookieAttribute.values()) System.out.println(c);
public static CookieAttribute 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 nullpublic String getKey()
getKey in interface org.refcodes.mixin.KeyAccessor<String>public static CookieAttribute fromKey(String aKey)
aKey - the keyCopyright © 2018. All rights reserved.