public class SimpleCookieManager extends Object implements CookieManager
| Modifier and Type | Field and Description |
|---|---|
protected Map |
cookies
The cookie cache.
|
| Constructor and Description |
|---|
SimpleCookieManager()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Cookie[] |
getCookies(String host,
boolean secure,
String path)
Retrieves the cookies matching the specified criteria.
|
void |
setCookie(Cookie cookie)
Stores a cookie in the cookie manager.
|
protected Map cookies
public void setCookie(Cookie cookie)
CookieManagersetCookie in interface CookieManagercookie - the cookie to storepublic Cookie[] getCookies(String host, boolean secure, String path)
CookieManagergetCookies in interface CookieManagerhost - the host namesecure - whether the connection is securepath - the path to accessCopyright © 2017. All rights reserved.