Interface CookieFactory


public interface CookieFactory
Factory to create cookies.
  • Method Details

    • createCookie

      Cookie createCookie(String name)
      Creates a cookie using the given name (null value).

      By default, the public host (SpincastConfig.getPublicServerHost()) is uses as the cookie's domain and the cookie is valid for the time of the session only.

    • createCookie

      Cookie createCookie(String name, String value)
      Creates a cookie using the given name and value.

      By default, the public host (SpincastConfig.getPublicServerHost()) is uses as the cookie's domain and the cookie is valid for the time of the session only.

    • createCookie

      Cookie createCookie(String name, String value, String path, String domain, Date expires, boolean secure, boolean httpOnly, CookieSameSite cookieSameSite, boolean discard, int version)
      Creates a cookie using all available configurations.