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 Type
    Method
    Description
    Provides the cookies that were stored before.
    void
    Stores all the cookies that should last.
  • Method Details

    • load

      Provides the cookies that were stored before. The jar will drop the ones that have expired.
      Returns:
      the stored cookies; or

      null if there are none

      Since:
      1.11.0
    • save

      void save(Collection<SiteCookie> cookies)
      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