public interface CookieStore
Modifier and Type | Method and Description |
---|---|
static CookieStore |
build()
Builds an in memory cookie store.
|
Iterable<Cookie> |
get(Boolean ssl,
String domain,
String path)
Returns and
Iterable of cookies satisfying the filters passed as paraemters. |
CookieStore |
put(Cookie cookie)
Add a cookie to this
CookieStore . |
CookieStore |
remove(Cookie cookie)
Removes a previously added cookie.
|
static CookieStore build()
Iterable<Cookie> get(Boolean ssl, String domain, String path)
Iterable
of cookies satisfying the filters passed as paraemters.
It is implementation responsibility to return the appropriate cookies between the ones stored in this store and to clean up the path.
ssl
- true if is the connection securedomain
- the domain we are callingpath
- the path we are callingCookieStore put(Cookie cookie)
CookieStore
.
If a cookie with the same name is received from the server, it will overwrite this setting.
cookie
- the Cookie
to addCookieStore remove(Cookie cookie)
cookie
- the Cookie
to removeCopyright © 2024 Eclipse. All rights reserved.