Package com.meterware.httpunit.cookies
Class CookieProperties
- java.lang.Object
-
- com.meterware.httpunit.cookies.CookieProperties
-
public class CookieProperties extends java.lang.ObjectControls behavior for cookies.
-
-
Constructor Summary
Constructors Constructor Description CookieProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddCookieListener(CookieListener listener)Adds a listener for cookie events.static booleanisDomainMatchingStrict()Returns true (the default) if cookies should be rejected if they specify a domain which is not a suffix of the host domain or does not contain all of the dots in that host domain name (see RFC2965).static booleanisPathMatchingStrict()Returns true (the default) if cookies should be rejected if they specify a path which is not a prefix of the request path (see RFC2965).static voidreportCookieRejected(int reason, java.lang.String attribute, java.lang.String source)static voidreset()static voidsetDomainMatchingStrict(boolean domainMatchingStrict)Specifies whether strict domain name matching must be followed.static voidsetPathMatchingStrict(boolean pathMatchingStrict)Specifies whether strict path name matching must be followed.
-
-
-
Method Detail
-
reset
public static void reset()
-
isDomainMatchingStrict
public static boolean isDomainMatchingStrict()
Returns true (the default) if cookies should be rejected if they specify a domain which is not a suffix of the host domain or does not contain all of the dots in that host domain name (see RFC2965).
-
setDomainMatchingStrict
public static void setDomainMatchingStrict(boolean domainMatchingStrict)
Specifies whether strict domain name matching must be followed.
-
isPathMatchingStrict
public static boolean isPathMatchingStrict()
Returns true (the default) if cookies should be rejected if they specify a path which is not a prefix of the request path (see RFC2965).
-
setPathMatchingStrict
public static void setPathMatchingStrict(boolean pathMatchingStrict)
Specifies whether strict path name matching must be followed.
-
addCookieListener
public static void addCookieListener(CookieListener listener)
Adds a listener for cookie events.
-
reportCookieRejected
public static void reportCookieRejected(int reason, java.lang.String attribute, java.lang.String source)
-
-