public class LZMAContentEncoding extends Object implements ContentEncoding
Constructor and Description |
---|
LZMAContentEncoding() |
LZMAContentEncoding(EncodingFilter encodingFilter) |
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 . |
boolean |
equals(Object o) |
String[] |
getAliases()
Get the ContentEncoding aliases.
|
static String[] |
getLzmaAliases() |
String |
getName()
Get the ContentEncoding name.
|
int |
hashCode() |
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. |
public static final String NAME
public LZMAContentEncoding()
public LZMAContentEncoding(EncodingFilter encodingFilter)
public String getName()
ContentEncoding
getName
in interface ContentEncoding
public String[] getAliases()
ContentEncoding
getAliases
in interface ContentEncoding
public static String[] getLzmaAliases()
public boolean wantDecode(HttpHeader header)
ContentEncoding
HttpHeader
should be decoded using this ContentEncoding.wantDecode
in interface ContentEncoding
header
- HTTP packet header.public boolean wantEncode(HttpHeader header)
ContentEncoding
HttpHeader
should be encoded using this ContentEncoding.wantEncode
in interface ContentEncoding
header
- HTTP packet header.public ParsingResult decode(Connection connection, HttpContent httpContent)
ContentEncoding
HttpContent
.decode
in interface ContentEncoding
connection
- Connection
.httpContent
- HttpContent
to decode.ParsingResult
, which represents the result of decoding.public HttpContent encode(Connection connection, HttpContent httpContent)
ContentEncoding
HttpContent
.encode
in interface ContentEncoding
connection
- Connection
.httpContent
- HttpContent
to encode.HttpContent
.Copyright © 2014 Oracle Corporation. All rights reserved.