Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of the header in the HTTP message.
|
Constructor and Description |
---|
ReferrerHeader() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the header, as it would canonically appear within an
HTTP message.
|
MutableUri |
getUri()
Get the URI value of the
Referrer header. |
List<String> |
getValues()
Returns the header as a list of strings.
|
ReferrerHeader |
setUri(MutableUri uri)
Set the URI value of the
Referrer header. |
static ReferrerHeader |
valueOf(Message<?> message)
Constructs a new header, initialized from the specified message.
|
static ReferrerHeader |
valueOf(String value)
Parse the provided value as a
Referrer header. |
equals, getFirstValue, hashCode, toString
public static final String NAME
public String getName()
Header
public List<String> getValues()
Header
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 MutableUri getUri()
Referrer
header.public ReferrerHeader setUri(MutableUri uri)
Referrer
header.uri
- The URI.public static ReferrerHeader valueOf(Message<?> message) throws MalformedHeaderException
message
- The message to initialize the header from.MalformedHeaderException
- If the Referrer URI has invalid syntax.public static ReferrerHeader valueOf(String value) throws MalformedHeaderException
Referrer
header.value
- The Referrer
URI.MalformedHeaderException
- If the URI has invalid syntax.Copyright © 2010-2018, ForgeRock All Rights Reserved.