public abstract class Header extends Object
Constructor and Description |
---|
Header() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getFirstValue()
Gets the first value of this header instance.
|
abstract String |
getName()
Returns the name of the header, as it would canonically appear within an
HTTP message.
|
abstract List<String> |
getValues()
Returns the header as a list of strings.
|
int |
hashCode() |
String |
toString() |
public abstract String getName()
public abstract List<String> getValues()
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.
public String getFirstValue()
getValues()
,
the returned String
may contain multiple token-separated values.Copyright © 2025 Open Identity Platform Community. All rights reserved.