|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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 |
static int |
NETSCAPE_DRAFT
The NETSCAPE_DRAFT Netscape draft compliant policy |
static int |
RFC2109
The RFC2109 RFC 2109 compliant policy (default) |
Constructor Summary | |
CookiePolicy()
|
Method Summary | |
static CookieSpec |
getCompatibilitySpec()
|
static int |
getDefaultPolicy()
|
static CookieSpec |
getDefaultSpec()
|
static CookieSpec |
getSpecByPolicy(int policy)
|
static CookieSpec |
getSpecByVersion(int ver)
|
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
Constructor Detail |
public CookiePolicy()
Method Detail |
public static int getDefaultPolicy()
public static void setDefaultPolicy(int policy)
public static CookieSpec getSpecByPolicy(int policy)
public static CookieSpec getDefaultSpec()
public static CookieSpec getSpecByVersion(int ver)
public static CookieSpec getCompatibilitySpec()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |