Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.meterware.httpunit.cookies
Interface CookieListener  view CookieListener download CookieListener.java


public interface CookieListener

An interface for classes which can listen for cookies being rejected and the reason.


Field Summary
static int ACCEPTED
          Indicates that the cookie was accepted.
static int DOMAIN_NOT_SOURCE_SUFFIX
          Indicates that the domain attribute is not a suffix of the source domain issuing the cookie.
static int DOMAIN_ONE_DOT
          Indicates that the domain attribute has only one dot.
static int DOMAIN_TOO_MANY_LEVELS
          Indicates that the source domain has an extra dot beyond those defined in the domain attribute.
static int PATH_NOT_PREFIX
          Indicates that the source path does not begin with the path attribute.
 
Method Summary
 void cookieRejected(java.lang.String cookieName, int reason, java.lang.String attribute)
          Invoked when a cookie is rejected by HttpUnit.
 

Field Detail

ACCEPTED

public static final int ACCEPTED
Indicates that the cookie was accepted.

See Also:
Constant Field Values

DOMAIN_ONE_DOT

public static final int DOMAIN_ONE_DOT
Indicates that the domain attribute has only one dot.

See Also:
Constant Field Values

DOMAIN_NOT_SOURCE_SUFFIX

public static final int DOMAIN_NOT_SOURCE_SUFFIX
Indicates that the domain attribute is not a suffix of the source domain issuing the cookie.

See Also:
Constant Field Values

DOMAIN_TOO_MANY_LEVELS

public static final int DOMAIN_TOO_MANY_LEVELS
Indicates that the source domain has an extra dot beyond those defined in the domain attribute.

See Also:
Constant Field Values

PATH_NOT_PREFIX

public static final int PATH_NOT_PREFIX
Indicates that the source path does not begin with the path attribute.

See Also:
Constant Field Values
Method Detail

cookieRejected

public void cookieRejected(java.lang.String cookieName,
                           int reason,
                           java.lang.String attribute)
Invoked when a cookie is rejected by HttpUnit.