Interface CookieStore
public interface CookieStore
A cookie store that manages cookies for a single user; received for different domains and valid for different paths.
- Author:
- Tommaso Nolli
-
Method Summary
Modifier and TypeMethodDescriptionstatic CookieStorebuild()Builds an in memory cookie store.Returns andIterableof cookies satisfying the filters passed as paraemters.Add a cookie to thisCookieStore.Removes a previously added cookie.
-
Method Details
-
build
-
get
Returns andIterableof 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.
- Parameters:
ssl- true if is the connection securedomain- the domain we are callingpath- the path we are calling- Returns:
- the matched cookies
-
put
Add a cookie to thisCookieStore.If a cookie with the same name is received from the server, it will overwrite this setting.
- Parameters:
cookie- theCookieto add- Returns:
- a reference to this, so the API can be used fluently
-
remove
Removes a previously added cookie.- Parameters:
cookie- theCookieto remove- Returns:
- a reference to this, so the API can be used fluently
-