See RFC 2965 sec. 3.3 and 7 for more detail.
| Modifier and Type | Field and Description |
|---|---|
| public static final CookiePolicy | ACCEPT_ALL
One pre-defined policy which accepts all cookies. |
| public static final CookiePolicy | ACCEPT_NONE
One pre-defined policy which accepts no cookies. |
| public static final CookiePolicy | ACCEPT_ORIGINAL_SERVER
One pre-defined policy which only accepts cookies from original server. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this cookie should be accepted;
otherwise, falsethe URI to consult accept policy with uri, HttpCookie the HttpCookie object in question cookie)Will be called to see whether or not this cookie should be accepted. |
| ACCEPT_ALL | back to summary |
|---|---|
| public static final CookiePolicy ACCEPT_ALL One pre-defined policy which accepts all cookies. | |
| ACCEPT_NONE | back to summary |
|---|---|
| public static final CookiePolicy ACCEPT_NONE One pre-defined policy which accepts no cookies. | |
| ACCEPT_ORIGINAL_SERVER | back to summary |
|---|---|
| public static final CookiePolicy ACCEPT_ORIGINAL_SERVER One pre-defined policy which only accepts cookies from original server. | |
| shouldAccept | back to summary |
|---|---|
| public boolean shouldAccept(URI uri, HttpCookie cookie) Will be called to see whether or not this cookie should be accepted.
| |