CookiePolicy implementations decide which cookies should be accepted
and which should be rejected.
CookiePolicy implementations decide which cookies should be accepted
and which should be rejected. Three pre-defined policy implementations
are provided, namely ACCEPT_ALL, ACCEPT_NONE and ACCEPT_ORIGINAL_SERVER.
public boolean
shouldAccept
(URI uri, HttpCookie cookie)
Will be called to see whether or not this cookie should be accepted.
Will be called to see whether or not this cookie should be accepted.
Returns:true if this cookie should be accepted;
otherwise, false Parameters: - uri - the URI to consult accept policy with
- cookie - the HttpCookie object in question