public static enum DslCookieManager.CookiePolicy extends Enum<DslCookieManager.CookiePolicy> implements EnumParam.EnumPropertyValue
| Enum Constant and Description |
|---|
BEST_MATCH
Selects RFC 2965, RFC 2109 or Netscape draft compliant implementation based on cookies
properties sent with the HTTP response.
|
NETSCAPE
Conforms to the original draft specification published by Netscape Communications.
|
RFC2109
Compliant with RFC 2109.
|
RFC2965
Compliant with RFC 2965.
|
STANDARD
Compliant with RFC 6265 using a relaxed
interpretation of HTTP state management.
|
STANDARD_STRICT
Compliant with RFC 6265 using strict
adherence to state management of RFC 6265 section 4.
|
| Modifier and Type | Method and Description |
|---|---|
String |
propertyValue() |
static DslCookieManager.CookiePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DslCookieManager.CookiePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DslCookieManager.CookiePolicy STANDARD
This is the default value, and should work in most cases.
RFC6265LaxSpecpublic static final DslCookieManager.CookiePolicy STANDARD_STRICT
This might come in handy when you actually want to verify that a service is in strict adherence to the RFC.
RFC6265StrictSpecpublic static final DslCookieManager.CookiePolicy BEST_MATCH
This is helpful to test browser compatibility with old versions of RFCs. In general prefer using the STANDARD cookie policy.
DefaultCookieSpecpublic static final DslCookieManager.CookiePolicy RFC2965
This RFC is obsolete and replaced by RFC 6265, so this option should only be used in legacy applications that use this RFC.
You may use BEST_MATCH as alternative which in general should also be compatible
with RFC 2965.
RFC2965Specpublic static final DslCookieManager.CookiePolicy RFC2109
This RFC is obsolete and replaced by RFC 6265, so this option should only be used in legacy applications that use this RFC.
You may use BEST_MATCH as alternative which in general should also be compatible
with RFC 2109.
RFC2109Specpublic static final DslCookieManager.CookiePolicy NETSCAPE
This should be in general be avoided, unless is necessary to test legacy applications.
You may use BEST_MATCH as alternative which in general should also be compatible
with Netscape policy.
NetscapeDraftSpecpublic static DslCookieManager.CookiePolicy[] values()
for (DslCookieManager.CookiePolicy c : DslCookieManager.CookiePolicy.values()) System.out.println(c);
public static DslCookieManager.CookiePolicy 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 propertyValue()
propertyValue in interface EnumParam.EnumPropertyValueCopyright © 2024. All rights reserved.