public class CookiePolicyHandler
extends java.lang.Object
implements java.net.CookiePolicy
Constructor and Description |
---|
CookiePolicyHandler() |
Modifier and Type | Method and Description |
---|---|
void |
deleteCookies(java.net.CookieStore cookieStore)
Delete all the cookies of the current site (See 'setSiteHandling()' method).
|
void |
setSiteHandling(java.lang.String siteHandling)
Set the current HTTP site to be handled.
|
boolean |
shouldAccept(java.net.URI uri,
java.net.HttpCookie cookie)
Implementation of the java.net.CookiePolicy interface.
|
public void setSiteHandling(java.lang.String siteHandling)
siteHandling
- Identifier of the domain site.public void deleteCookies(java.net.CookieStore cookieStore)
cookieStore
- The cookie store to update.public boolean shouldAccept(java.net.URI uri, java.net.HttpCookie cookie)
shouldAccept
in interface java.net.CookiePolicy
uri
- URI of the site that owns the cookie.cookie
- Cookie received.