Enum Class CookieValueConflictPolicy
- All Implemented Interfaces:
Serializable, Comparable<CookieValueConflictPolicy>, Constable
Determines how
WebRequest.getCookie(String, CookieValueConflictPolicy) handles multiple cookies with the
same case-sensitive name.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturns the first matching cookie, including when later values differ.Uses the SDK default, which isALLOW_CONFLICTING_VALUESin this release.Rejects the lookup when matching cookies contain different values. -
Method Summary
Modifier and TypeMethodDescriptionstatic CookieValueConflictPolicyReturns the enum constant of this class with the specified name.static CookieValueConflictPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Uses the SDK default, which isALLOW_CONFLICTING_VALUESin this release. -
ALLOW_CONFLICTING_VALUES
Returns the first matching cookie, including when later values differ. -
REJECT_CONFLICTING_VALUES
Rejects the lookup when matching cookies contain different values.
-
-
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
-