Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of this header.
|
Constructor and Description |
---|
SetCookieHeader(List<Cookie> cookies)
Constructs a new header with the provided cookies.
|
Modifier and Type | Method and Description |
---|---|
List<Cookie> |
getCookies()
Returns the cookies.
|
String |
getName()
Returns the name of the header, as it would canonically appear within an
HTTP message.
|
List<String> |
getValues()
Returns the header as a list of strings.
|
static SetCookieHeader |
valueOf(List<String> values)
Constructs a new header, initialized from the specified list of Set-Cookie values.
|
static SetCookieHeader |
valueOf(Response response)
Constructs a new header, initialized from the specified response message.
|
static SetCookieHeader |
valueOf(String value)
Constructs a new header, initialized from the specified string value.
|
equals, getFirstValue, hashCode, toString
public static final String NAME
public static SetCookieHeader valueOf(String value)
value
- The value to initialize the header from.public static SetCookieHeader valueOf(Response response)
response
- The response message to initialize the header from.public static SetCookieHeader valueOf(List<String> values)
values
- The values to initialize the header from.public String getName()
Header
public List<String> getValues()
Header
String
should
represent the value component of the key-value pair that makes up the
HTTP header - as such, for some Header
implementations each
String in this List
may contain multiple token-separated values.
The List
returned from this method should not be expected to be
mutable. However, some subclasses of Header
may choose to
implement it as such.
Copyright © 2025 Open Identity Platform Community. All rights reserved.