Interface SetCookie

All Superinterfaces:
Cookie
All Known Subinterfaces:
SetCookieParameter

public interface SetCookie extends Cookie

Represents a HTTP set-cookie as defined by RFC 6265 Section 4.1

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • getExpires

      ZonedDateTime getExpires()

      Returns cookie's expires attribute.

      Returns:
      the expires or null
    • getMaxAge

      Integer getMaxAge()

      Returns cookie's max age attribute.

      Returns:
      the max age or null
    • getDomain

      String getDomain()

      Returns cookie's domain attribute.

      Returns:
      the domain or null
    • getPath

      String getPath()

      Returns cookie's path attribute.

      Returns:
      the path or null
    • isSecure

      Boolean isSecure()

      Returns cookie's secure flag attribute.

      Returns:
      the secure flag or null
    • isHttpOnly

      Boolean isHttpOnly()

      Returns cookie's http only flag attribute.

      Returns:
      the http only flag or null
    • getSameSite

      Returns cookie's same site attribute.

      Returns:
      the same site attribute or null