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()
ContentEncodinggetName in interface ContentEncodingpublic String[] getAliases()
ContentEncodinggetAliases in interface ContentEncodingpublic static String[] getLzmaAliases()
public boolean wantDecode(HttpHeader header)
ContentEncodingHttpHeader should be decoded using this ContentEncoding.wantDecode in interface ContentEncodingheader - HTTP packet header.public boolean wantEncode(HttpHeader header)
ContentEncodingHttpHeader should be encoded using this ContentEncoding.wantEncode in interface ContentEncodingheader - HTTP packet header.public ParsingResult decode(Connection connection, HttpContent httpContent)
ContentEncodingHttpContent.decode in interface ContentEncodingconnection - Connection.httpContent - HttpContent to decode.ParsingResult, which represents the result of decoding.public HttpContent encode(Connection connection, HttpContent httpContent)
ContentEncodingHttpContent.encode in interface ContentEncodingconnection - Connection.httpContent - HttpContent to encode.HttpContent.Copyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.