Interface CookieJar
public interface CookieJar
A
Cookie
container for a client.-
Method Summary
Modifier and Type Method Description Cookies
get(URI uri)
default void
set(URI uri, Iterable<? extends Cookie> cookies)
void
set(URI uri, Iterable<? extends Cookie> cookies, long createdTimeMillis)
default CookieState
state(Cookie cookie)
Determines the state of a cookie.CookieState
state(Cookie cookie, long currentTimeMillis)
Determines the state of a cookie given the current time.
-
Method Details
-
get
-
set
-
set
-
state
Determines the state of a cookie. This method is a shortcut forstate(cookie, System.currentTimeMillis())
. -
state
Determines the state of a cookie given the current time.
-