Enum DslCookieManager.CookiePolicy
- java.lang.Object
-
- java.lang.Enum<DslCookieManager.CookiePolicy>
-
- us.abstracta.jmeter.javadsl.http.DslCookieManager.CookiePolicy
-
- All Implemented Interfaces:
Serializable,Comparable<DslCookieManager.CookiePolicy>,EnumParam.EnumPropertyValue
- Enclosing class:
- DslCookieManager
public static enum DslCookieManager.CookiePolicy extends Enum<DslCookieManager.CookiePolicy> implements EnumParam.EnumPropertyValue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEST_MATCHSelects RFC 2965, RFC 2109 or Netscape draft compliant implementation based on cookies properties sent with the HTTP response.NETSCAPEConforms to the original draft specification published by Netscape Communications.RFC2109Compliant with RFC 2109.RFC2965Compliant with RFC 2965.STANDARDCompliant with RFC 6265 using a relaxed interpretation of HTTP state management.STANDARD_STRICTCompliant with RFC 6265 using strict adherence to state management of RFC 6265 section 4.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringpropertyValue()static DslCookieManager.CookiePolicyvalueOf(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.
-
-
-
Enum Constant Detail
-
STANDARD
public static final DslCookieManager.CookiePolicy STANDARD
Compliant with RFC 6265 using a relaxed interpretation of HTTP state management.This is the default value, and should work in most cases.
- See Also:
RFC6265LaxSpec
-
STANDARD_STRICT
public static final DslCookieManager.CookiePolicy STANDARD_STRICT
Compliant with RFC 6265 using strict adherence to state management of RFC 6265 section 4.This might come in handy when you actually want to verify that a service is in strict adherence to the RFC.
- See Also:
RFC6265StrictSpec
-
BEST_MATCH
public static final DslCookieManager.CookiePolicy BEST_MATCH
Selects RFC 2965, RFC 2109 or Netscape draft compliant implementation based on cookies properties sent with the HTTP response.This is helpful to test browser compatibility with old versions of RFCs. In general prefer using the STANDARD cookie policy.
- See Also:
DefaultCookieSpec
-
RFC2965
public static final DslCookieManager.CookiePolicy RFC2965
Compliant with RFC 2965.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_MATCHas alternative which in general should also be compatible with RFC 2965.- See Also:
RFC2965Spec
-
RFC2109
public static final DslCookieManager.CookiePolicy RFC2109
Compliant with RFC 2109.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_MATCHas alternative which in general should also be compatible with RFC 2109.- See Also:
RFC2109Spec
-
NETSCAPE
public static final DslCookieManager.CookiePolicy NETSCAPE
Conforms to the original draft specification published by Netscape Communications.This should be in general be avoided, unless is necessary to test legacy applications.
You may use
BEST_MATCHas alternative which in general should also be compatible with Netscape policy.- See Also:
NetscapeDraftSpec
-
-
Method Detail
-
values
public static DslCookieManager.CookiePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DslCookieManager.CookiePolicy c : DslCookieManager.CookiePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DslCookieManager.CookiePolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
propertyValue
public String propertyValue()
- Specified by:
propertyValuein interfaceEnumParam.EnumPropertyValue
-
-