Package org.forgerock.http.header
Class TransactionIdHeader
java.lang.Object
org.forgerock.http.protocol.Header
org.forgerock.http.header.TransactionIdHeader
Processes the transactionId header used mainly for audit purpose.
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionTransactionIdHeader(String value) Constructs a new header with the provided value for the transaction id.TransactionIdHeader(TransactionId transactionId) Constructs a new header with the provided transaction id object. - 
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the header, as it would canonically appear within an HTTP message.Returns the transaction id.Returns the header as a list of strings.static TransactionIdHeaderConstructs a new header, initialized from the specified string value.static TransactionIdHeaderConstructs a new header, initialized from the specified request.Methods inherited from class org.forgerock.http.protocol.Header
equals, getFirstValue, hashCode, toString 
- 
Field Details
- 
NAME
The name of this header.- See Also:
 
 
 - 
 - 
Constructor Details
- 
TransactionIdHeader
Constructs a new header with the provided value for the transaction id. The transactionId will be null if either the value is null or empty.- Parameters:
 value- The value for the transaction id.- Throws:
 MalformedHeaderException- if the value is not acceptable for aTransactionId
 - 
TransactionIdHeader
Constructs a new header with the provided transaction id object.- Parameters:
 transactionId- The transaction id.
 
 - 
 - 
Method Details
- 
valueOf
Constructs a new header, initialized from the specified request.- Parameters:
 request- The request to initialize the header from.- Returns:
 - The parsed header
 - Throws:
 MalformedHeaderException- if the value is not acceptable for aTransactionId
 - 
valueOf
Constructs a new header, initialized from the specified string value.- Parameters:
 value- The value to initialize the header from.- Returns:
 - The parsed header.
 - Throws:
 MalformedHeaderException- if the value is not acceptable for aTransactionId
 - 
getTransactionId
Returns the transaction id.- Returns:
 - The transaction id
 
 - 
getName
Description copied from class:HeaderReturns the name of the header, as it would canonically appear within an HTTP message. - 
getValues
Description copied from class:HeaderReturns the header as a list of strings. If the header has no values then it must return an empty list, never null. EachStringshould represent the value component of the key-value pair that makes up the HTTP header - as such, for someHeaderimplementations each String in thisListmay contain multiple token-separated values.The
Listreturned from this method should not be expected to be mutable. However, some subclasses ofHeadermay choose to implement it as such. 
 -