com.meterware.httpunit.cookies

Class CookieProperties

public class CookieProperties extends Object

Controls behavior for cookies.
Method Summary
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, String attribute, 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

addCookieListener

public static void addCookieListener(CookieListener listener)
Adds a listener for cookie events.

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).

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).

reportCookieRejected

public static void reportCookieRejected(int reason, String attribute, String source)

reset

public static void reset()

setDomainMatchingStrict

public static void setDomainMatchingStrict(boolean domainMatchingStrict)
Specifies whether strict domain name matching must be followed.

setPathMatchingStrict

public static void setPathMatchingStrict(boolean pathMatchingStrict)
Specifies whether strict path name matching must be followed.