Class SetCookieHeader

java.lang.Object
septogeddon.pluginquery.http.headertype.SetCookieHeader
All Implemented Interfaces:
HTTPHeader

public class SetCookieHeader extends Object implements HTTPHeader
Set-Cookie HTTP header
  • Constructor Details

    • SetCookieHeader

      public SetCookieHeader(Object raw)
      Parse Set-Cookie header
      Parameters:
      raw - the raw header value
    • SetCookieHeader

      public SetCookieHeader(String name, Object value)
      Create a Set-Cookie header
      Parameters:
      name - the cookie name
      value - the cookie value
    • SetCookieHeader

      public SetCookieHeader(HttpCookie cookie)
      Create a Set-Cookie header using existing HttpCookie
      Parameters:
      cookie -
  • Method Details

    • getCookie

      public HttpCookie getCookie()
      The Cookie
      Returns:
      the HttpCookie instance
    • toString

      public String toString()
      Description copied from interface: HTTPHeader
      Get the raw header
      Specified by:
      toString in interface HTTPHeader
      Overrides:
      toString in class Object
      Returns:
      raw header value