public interface CookiePolicy
| Modifier and Type | Field and Description |
|---|---|
static CookiePolicy |
ACCEPT_ALL
A pre-defined policy, accepts all cookies.
|
static CookiePolicy |
ACCEPT_NONE
A pre-defined policy, accepts no cookies at all.
|
static CookiePolicy |
ACCEPT_ORIGINAL_SERVER
A pre-defined policy, only accepts cookies from original server.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldAccept(URI uri,
HttpCookie cookie)
This method is used to determine whether or not the specified cookie
should be accepted.
|
static final CookiePolicy ACCEPT_ALL
static final CookiePolicy ACCEPT_NONE
static final CookiePolicy ACCEPT_ORIGINAL_SERVER
boolean shouldAccept(URI uri, HttpCookie cookie)
uri - the URI to used to determine acceptabilitycookie - the HttpCookie to be determined