Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of the header that this object represents.
|
Constructor and Description |
---|
ContentEncodingHeader()
Constructs a new empty header.
|
ContentEncodingHeader(Message<?> message)
Constructs a new header, initialized from the specified message.
|
ContentEncodingHeader(String string)
Constructs a new header, initialized from the specified string value.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
decode(InputStream in)
Returns an input stream that decodes the specified input stream, given the
content-codings that are specified in the
codings list. |
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.
|
List<String> |
getCodings()
Returns the content-coding(s).
|
String |
getKey()
Returns the name of the header, as it would canonically appear within an HTTP message.
|
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 ContentEncodingHeader()
public ContentEncodingHeader(Message<?> message)
message
- the message to initialize the header from.public ContentEncodingHeader(String string)
string
- the value to initialize the header from.public InputStream decode(InputStream in) throws IOException, UnsupportedEncodingException
codings
list.in
- the input stream to decode.IOException
- if an I/O exception occurs.UnsupportedEncodingException
- if an unsupported content-encoding is specified.public List<String> getCodings()
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.