Class GenericSetCookieParameter

java.lang.Object
io.inverno.mod.http.base.internal.GenericParameter
io.inverno.mod.http.base.internal.header.GenericSetCookieParameter
All Implemented Interfaces:
Convertible<String>, Cookie, SetCookie, SetCookieParameter, Parameter

public class GenericSetCookieParameter extends GenericParameter implements SetCookieParameter

Generic SetCookieParameter implementation.

Since:
1.6
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • GenericSetCookieParameter

      public GenericSetCookieParameter(Headers.SetCookie setCookieHeader, ObjectConverter<String> parameterConverter)

      Creates a generic set cookie parameter.

      Parameters:
      setCookieHeader - a set cookie header
      parameterConverter - a string object parameter
  • Method Details

    • getExpires

      public ZonedDateTime getExpires()
      Description copied from interface: SetCookie

      Returns cookie's expires attribute.

      Specified by:
      getExpires in interface SetCookie
      Returns:
      the expires or null
    • getMaxAge

      public Integer getMaxAge()
      Description copied from interface: SetCookie

      Returns cookie's max age attribute.

      Specified by:
      getMaxAge in interface SetCookie
      Returns:
      the max age or null
    • getDomain

      public String getDomain()
      Description copied from interface: SetCookie

      Returns cookie's domain attribute.

      Specified by:
      getDomain in interface SetCookie
      Returns:
      the domain or null
    • getPath

      public String getPath()
      Description copied from interface: SetCookie

      Returns cookie's path attribute.

      Specified by:
      getPath in interface SetCookie
      Returns:
      the path or null
    • isSecure

      public Boolean isSecure()
      Description copied from interface: SetCookie

      Returns cookie's secure flag attribute.

      Specified by:
      isSecure in interface SetCookie
      Returns:
      the secure flag or null
    • isHttpOnly

      public Boolean isHttpOnly()
      Description copied from interface: SetCookie

      Returns cookie's http only flag attribute.

      Specified by:
      isHttpOnly in interface SetCookie
      Returns:
      the http only flag or null
    • getSameSite

      public Headers.SetCookie.SameSitePolicy getSameSite()
      Description copied from interface: SetCookie

      Returns cookie's same site attribute.

      Specified by:
      getSameSite in interface SetCookie
      Returns:
      the same site attribute or null