Module swim.http

Class SetCookieHeader

java.lang.Object
swim.http.HttpPart
swim.http.HttpHeader
swim.http.header.SetCookieHeader
All Implemented Interfaces:
Comparable<HttpHeader>, Debug

public class SetCookieHeader extends HttpHeader
  • Method Details

    • isBlank

      public boolean isBlank()
      Overrides:
      isBlank in class HttpHeader
    • lowerCaseName

      public String lowerCaseName()
      Specified by:
      lowerCaseName in class HttpHeader
    • name

      public String name()
      Specified by:
      name in class HttpHeader
    • writeHeaderValue

      public Writer<?,?> writeHeaderValue(Output<?> output, HttpWriter http)
      Specified by:
      writeHeaderValue in class HttpHeader
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • debug

      public <T> Output<T> debug(Output<T> output)
      Description copied from interface: Debug
      Writes a developer readable, debug-formatted string representation of this object to output.
      Specified by:
      debug in interface Debug
      Specified by:
      debug in class HttpHeader
      Returns:
      the continuation of the output.
    • create

      public static SetCookieHeader create(Cookie cookie)
    • create

      public static SetCookieHeader create(String name, String value)
    • create

      public static SetCookieHeader create(String name)
    • expire

      public void expire()
    • setSecure

      public void setSecure()
    • unsetSecure

      public void unsetSecure()
    • setHttpOnly

      public void setHttpOnly()
    • unsetHttpOnly

      public void unsetHttpOnly()
    • setMaxAge

      public void setMaxAge(long maxAge)
    • unsetMaxAge

      public void unsetMaxAge()
    • setDomain

      public void setDomain(String domain)
    • unsetDomain

      public void unsetDomain()
    • setPath

      public void setPath(String path)
    • unsetPath

      public void unsetPath()
    • setSameSite

      public void setSameSite(SetCookieHeader.SameSite sameSite)
    • unsetSameSite

      public void unsetSameSite()