public final class ContentApiVersionHeader extends Header
Content-API-Version message header.
Represents the protocol and resource versions of the returned content.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of this header.
|
| Constructor and Description |
|---|
ContentApiVersionHeader(Version protocolVersion,
Version resourceVersion)
Constructs a new header, initialized with the specified protocol and
resource versions.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the header, as it would canonically appear within an
HTTP message.
|
Version |
getProtocolVersion()
Gets the protocol version of the content of the returned content.
|
Version |
getResourceVersion()
Gets the resource version of the returned content.
|
List<String> |
getValues()
Returns the header as a list of strings.
|
static ContentApiVersionHeader |
valueOf(Message message)
Constructs a new header, initialized from the specified message.
|
static ContentApiVersionHeader |
valueOf(String headerValue)
Constructs a new header, initialized from the specified string.
|
equals, getFirstValue, hashCode, toStringpublic static final String NAME
public ContentApiVersionHeader(Version protocolVersion, Version resourceVersion)
protocolVersion - The protocol version of the content of the
returned content.resourceVersion - The resource version of the returned content.public static ContentApiVersionHeader valueOf(Message message)
message - The message to initialize the header from.public static ContentApiVersionHeader valueOf(String headerValue)
headerValue - The value to initialize the header from.public String getName()
Headerpublic Version getProtocolVersion()
public Version getResourceVersion()
public List<String> getValues()
HeaderString 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.