public class SimpleCookieManager extends java.lang.Object implements CookieManager
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
cookies
The cookie cache.
|
Constructor and Description |
---|
SimpleCookieManager()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Cookie[] |
getCookies(java.lang.String host,
boolean secure,
java.lang.String path)
Retrieves the cookies matching the specified criteria.
|
void |
setCookie(Cookie cookie)
Stores a cookie in the cookie manager.
|
protected java.util.Map cookies
public void setCookie(Cookie cookie)
CookieManager
setCookie
in interface CookieManager
cookie
- the cookie to storepublic Cookie[] getCookies(java.lang.String host, boolean secure, java.lang.String path)
CookieManager
getCookies
in interface CookieManager
host
- the host namesecure
- whether the connection is securepath
- the path to access