public class LZMAContentEncoding extends java.lang.Object implements ContentEncoding
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| 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(java.lang.Object o) |
java.lang.String[] |
getAliases()
Get the ContentEncoding aliases.
|
static java.lang.String[] |
getLzmaAliases() |
java.lang.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 java.lang.String NAME
public LZMAContentEncoding()
public LZMAContentEncoding(EncodingFilter encodingFilter)
public java.lang.String getName()
ContentEncodinggetName in interface ContentEncodingpublic java.lang.String[] getAliases()
ContentEncodinggetAliases in interface ContentEncodingpublic static java.lang.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.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018 Oracle Corporation. All Rights Reserved.