public enum CCookie extends Enum<CCookie>
Enum Constant and Description |
---|
LOCALE
Contains the locale.
|
STYLESHEET
Contains the locale.
|
TIMEZONE
Contains the time zone.
|
Modifier and Type | Field and Description |
---|---|
static int |
EXPIRES_AFTER_A_DAY
Cookie expires after a day.
|
static int |
EXPIRES_AFTER_A_MONTH
Cookie expires after a month.
|
static int |
EXPIRES_AFTER_A_YEAR
Cookie expires after a year.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of this cookie.
|
static CCookie |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CCookie[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CCookie LOCALE
public static final CCookie STYLESHEET
public static final CCookie TIMEZONE
public static final int EXPIRES_AFTER_A_DAY
public static final int EXPIRES_AFTER_A_MONTH
public static final int EXPIRES_AFTER_A_YEAR
public static CCookie[] values()
for (CCookie c : CCookie.values()) System.out.println(c);
public static CCookie 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 getName()
Copyright © 2008–2018. All rights reserved.