public interface CookieStore
Cookie
objects.| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCookie(Cookie cookie)
Adds an
Cookie, replacing any existing equivalent cookies. |
void |
clear()
Clears all cookies.
|
boolean |
clearExpired(Date date)
已过时。
|
default boolean |
clearExpired(Instant date)
|
List<Cookie> |
getCookies()
Returns all cookies contained in this store.
|
void addCookie(Cookie cookie)
Cookie, replacing any existing equivalent cookies.
If the given cookie has already expired it will not be added, but existing
values will still be removed.cookie - the cookie to be added@Deprecated boolean clearExpired(Date date)
clearExpired(Instant)default boolean clearExpired(Instant date)
void clear()
Copyright © 2023. All rights reserved.