public interface ContentEncoding
GZipContentEncoding
Modifier and Type | Method and Description |
---|---|
ParsingResult |
decode(Connection connection,
HttpContent httpContent)
Decode HTTP packet content represented by
HttpContent . |
HttpContent |
encode(Connection connection,
HttpContent httpContent)
Encode HTTP packet content represented by
HttpContent . |
String[] |
getAliases()
Get the ContentEncoding aliases.
|
String |
getName()
Get the ContentEncoding name.
|
boolean |
wantDecode(HttpHeader header)
Method should implement the logic, which decides if HTTP packet with
the specific
HttpHeader should be decoded using this ContentEncoding. |
boolean |
wantEncode(HttpHeader header)
Method should implement the logic, which decides if HTTP packet with
the specific
HttpHeader should be encoded using this ContentEncoding. |
String getName()
String[] getAliases()
boolean wantDecode(HttpHeader header)
HttpHeader
should be decoded using this ContentEncoding.header
- HTTP packet header.boolean wantEncode(HttpHeader header)
HttpHeader
should be encoded using this ContentEncoding.header
- HTTP packet header.ParsingResult decode(Connection connection, HttpContent httpContent)
HttpContent
.connection
- Connection
.httpContent
- HttpContent
to decode.ParsingResult
, which represents the result of decoding.HttpContent encode(Connection connection, HttpContent httpContent)
HttpContent
.connection
- Connection
.httpContent
- HttpContent
to encode.HttpContent
.Copyright © 2014 Oracle Corporation. All rights reserved.