Package rife.engine
Interface SiteCookieStore
- All Known Implementing Classes:
SiteCookieFileStore
public interface SiteCookieStore
Stores the cookies of a
SiteCookieJar somewhere that lasts, so
that they survive a restart of your application.
Only the cookies with an expiry are stored, in the same way that a browser forgets its session cookies when it's closed. These can be credentials, a remembered login for instance, so they belong in storage that your application protects.
- Since:
- 1.11.0
-
Method Summary
Modifier and TypeMethodDescriptionload()Provides the cookies that were stored before.voidsave(Collection<SiteCookie> cookies) Stores all the cookies that should last.
-
Method Details
-
load
Collection<SiteCookie> load()Provides the cookies that were stored before. The jar will drop the ones that have expired.- Returns:
- the stored cookies; or
nullif there are none - Since:
- 1.11.0
-
save
Stores all the cookies that should last. This method will be called each time they change.- Parameters:
cookies- the cookies to store, which replace what was stored before- Since:
- 1.11.0
-