Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of the header that this object represents.
|
Constructor and Description |
---|
LocationHeader()
Constructs a new empty
LocationHeader . |
LocationHeader(Message<?> message)
Constructs a new
LocationHeader , initialized from the specified message. |
LocationHeader(String string)
Constructs a new
LocationHeader , initialized from the specified String value. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
void |
fromMessage(Message<?> message)
Populates the content of the header from the specified message.
|
void |
fromString(String string)
Populates the content of the header from the specified string value.
|
String |
getKey()
Returns the name of the header, as it would canonically appear within an HTTP message.
|
String |
getLocationURI()
Returns the location URI or
null if empty. |
int |
hashCode() |
void |
toMessage(Message<?> message)
Sets the header in the specified message.
|
String |
toString()
Returns the header as a single string value.
|
public static final String NAME
public LocationHeader()
LocationHeader
.public LocationHeader(Message<?> message)
LocationHeader
, initialized from the specified message.message
- The message to initialize the header from.public LocationHeader(String string)
LocationHeader
, initialized from the specified String value.string
- The value to initialize the header from.public String getLocationURI()
null
if empty.null
if empty.public String getKey()
Header
public void fromMessage(Message<?> message)
Header
fromMessage
in interface Header
message
- The message to get the content of the header from.public void fromString(String string)
Header
fromString
in interface Header
string
- The string to populate the content of the header from.public void toMessage(Message<?> message)
Header
public String toString()
Header
null
.Copyright © 2014 ForgeRock AS. All rights reserved.