Interface Headers.SetCookie

All Superinterfaces:
Header
Enclosing class:
Headers

public static interface Headers.SetCookie extends Header

Set-cookie HTTP header as defined by RFC 6265 Section 4.1.

Since:
1.0
Author:
Jeremy Kuhn
  • Field Details

  • Method Details

    • getName

      String getName()

      Returns the cookie name.

      Returns:
      the cookie name or null
    • getValue

      String getValue()

      Returns the cookie value.

      Returns:
      the cookie value or null
    • getExpires

      ZonedDateTime getExpires()

      Returns the cookie expires value.

      Returns:
      the cookie expires value or null
    • getMaxAge

      Integer getMaxAge()

      Returns the cookie max age.

      Returns:
      the cookie max age or null
    • getDomain

      String getDomain()

      Returns the cookie max age.

      Returns:
      the cookie max age or null
    • getPath

      String getPath()

      Returns the cookie path.

      Returns:
      the cookie path or null
    • isSecure

      Boolean isSecure()

      Returns the cookie secure flag.

      Returns:
      the cookie secure flag or null
    • isHttpOnly

      Boolean isHttpOnly()

      Returns the cookie HTTP only flag.

      Returns:
      the cookie HTTP only flag or null
    • getSameSite

      Returns cookie's same site attribute.

      Returns:
      the same site attribute or null