|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.cookie.CookiePolicy
Cookie management policy class. The cookie policy provides corresponding cookie management interfrace for a given type or version of cookie.
RFC 2109 specification is used per default. Other supported specification can be chosen when appropriate or set default when desired
The following specifications are provided:
Default policy can be set on JVM start-up through the system property "apache.commons.httpclient.cookiespec". Recognized values: COMPATIBILITY, NETSCAPE_DRAFT, RFC2109.
Field Summary | |
static int |
COMPATIBILITY
The COMPATIBILITY policy provides high compatibilty with common cookie management of popular HTTP agents. |
protected static Log |
LOG
Log object. |
static int |
NETSCAPE_DRAFT
The NETSCAPE_DRAFT Netscape draft compliant policy. |
static int |
RFC2109
The RFC2109 RFC 2109 compliant policy. |
Constructor Summary | |
CookiePolicy()
|
Method Summary | |
(package private) static void |
|
static CookieSpec |
getCompatibilitySpec()
|
static int |
getDefaultPolicy()
|
static CookieSpec |
getDefaultSpec()
|
static CookieSpec |
getSpecByPolicy(int policy)
|
static CookieSpec |
getSpecByVersion(int ver)
Gets the CookieSpec for a particular cookie version. |
static void |
setDefaultPolicy(int policy)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int COMPATIBILITY
public static final int NETSCAPE_DRAFT
public static final int RFC2109
protected static final Log LOG
Constructor Detail |
public CookiePolicy()
Method Detail |
static void()
public static int getDefaultPolicy()
public static void setDefaultPolicy(int policy)
policy
- new default cookie policy
(COMPATIBILITY | NETSCAPE_DRAFT | RFC2109)public static CookieSpec getSpecByPolicy(int policy)
policy
- cookie policy to get the CookieSpec forpublic static CookieSpec getDefaultSpec()
public static CookieSpec getSpecByVersion(int ver)
Supported versions:
ver
- the cookie version to get the spec forpublic static CookieSpec getCompatibilitySpec()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |