Package org.forgerock.http.protocol
Class Header
java.lang.Object
org.forgerock.http.protocol.Header
- Direct Known Subclasses:
 AbstractSetCookieHeader,AcceptApiVersionHeader,AcceptLanguageHeader,AuthorizationHeader,ConnectionHeader,ContentApiVersionHeader,ContentEncodingHeader,ContentLengthHeader,ContentTypeHeader,CookieHeader,ForwardedHeader,GenericHeader,LocationHeader,OAuth2BearerWWWAuthenticateHeader,ReferrerHeader,TrailerHeader,TransactionIdHeader,WarningHeader,WwwAuthenticateHeader,XForwardedForHeader
An HTTP message header.
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
Header
public Header() 
 - 
 - 
Method Details
- 
getName
Returns the name of the header, as it would canonically appear within an HTTP message.- Returns:
 - The name of the header, as it would canonically appear within an HTTP message.
 
 - 
getValues
Returns 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.- Returns:
 - The header as a non-
nulllist of string values. Can be an empty list. 
 - 
getFirstValue
Gets the first value of this header instance. As withgetValues(), the returnedStringmay contain multiple token-separated values.- Returns:
 - The first value, or null if none exist.
 
 - 
toString
 - 
equals
 - 
hashCode
public int hashCode() 
 -