public enum CookieAttribute extends Enum<CookieAttribute> implements org.refcodes.mixin.KeyAccessor<String>
Enum Constant and 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 and 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 a keyCopyright © 2017. All rights reserved.