Package com.meterware.httpunit.cookies
Interface CookieListener
public interface CookieListener
An interface for classes which can listen for cookies being rejected and the reason.
- Author:
- Russell Gold
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Indicates that the cookie was accepted.static final int
Indicates that the domain attribute is not a suffix of the source domain issuing the cookie.static final int
Indicates that the domain attribute has only one dot.static final int
Indicates that the source domain has an extra dot beyond those defined in the domain attribute.static final int
Indicates that the source path does not begin with the path attribute. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cookieRejected
(String cookieName, int reason, String attribute) Invoked when a cookie is rejected by HttpUnit.
-
Field Details
-
ACCEPTED
static final int ACCEPTEDIndicates that the cookie was accepted.- See Also:
-
DOMAIN_ONE_DOT
static final int DOMAIN_ONE_DOTIndicates that the domain attribute has only one dot.- See Also:
-
DOMAIN_NOT_SOURCE_SUFFIX
static final int DOMAIN_NOT_SOURCE_SUFFIXIndicates that the domain attribute is not a suffix of the source domain issuing the cookie.- See Also:
-
DOMAIN_TOO_MANY_LEVELS
static final int DOMAIN_TOO_MANY_LEVELSIndicates that the source domain has an extra dot beyond those defined in the domain attribute.- See Also:
-
PATH_NOT_PREFIX
static final int PATH_NOT_PREFIXIndicates that the source path does not begin with the path attribute.- See Also:
-
-
Method Details
-
cookieRejected
Invoked when a cookie is rejected by HttpUnit.
-