public final class TransactionIdHeader extends Header
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of this header.
|
| Constructor and Description |
|---|
TransactionIdHeader(String value)
Constructs a new header with the provided value for the transaction id.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the header, as it would canonically appear within an
HTTP message.
|
TransactionId |
getTransactionId()
Returns the transaction id.
|
List<String> |
getValues()
Returns the header as a list of strings.
|
static TransactionIdHeader |
valueOf(Request request)
Constructs a new header, initialized from the specified request.
|
static TransactionIdHeader |
valueOf(String value)
Constructs a new header, initialized from the specified string value.
|
equals, getFirstValue, hashCode, toStringpublic static final String NAME
public TransactionIdHeader(String value) throws MalformedHeaderException
value - The value for the transaction id.MalformedHeaderException - if the value is not acceptable for a TransactionIdpublic static TransactionIdHeader valueOf(Request request) throws MalformedHeaderException
request - The request to initialize the header from.MalformedHeaderException - if the value is not acceptable for a TransactionIdpublic static TransactionIdHeader valueOf(String value) throws MalformedHeaderException
value - The value to initialize the header from.MalformedHeaderException - if the value is not acceptable for a TransactionIdpublic TransactionId getTransactionId()
public String getName()
Headerpublic 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.