java.lang.Object
org.glassfish.grizzly.http.LZMAContentEncoding
- All Implemented Interfaces:
ContentEncoding
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(org.glassfish.grizzly.Connection connection, HttpContent httpContent) Decode HTTP packet content represented byHttpContent
.encode
(org.glassfish.grizzly.Connection connection, HttpContent httpContent) Encode HTTP packet content represented byHttpContent
.boolean
String[]
Get the ContentEncoding aliases.static String[]
getName()
Get the ContentEncoding name.int
hashCode()
boolean
wantDecode
(HttpHeader header) Method should implement the logic, which decides if HTTP packet with the specificHttpHeader
should be decoded using this ContentEncoding.boolean
wantEncode
(HttpHeader header) Method should implement the logic, which decides if HTTP packet with the specificHttpHeader
should be encoded using this ContentEncoding.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
LZMAContentEncoding
public LZMAContentEncoding() -
LZMAContentEncoding
-
-
Method Details
-
getName
Description copied from interface:ContentEncoding
Get the ContentEncoding name.- Specified by:
getName
in interfaceContentEncoding
- Returns:
- the ContentEncoding name.
-
getAliases
Description copied from interface:ContentEncoding
Get the ContentEncoding aliases.- Specified by:
getAliases
in interfaceContentEncoding
- Returns:
- the ContentEncoding aliases.
-
getLzmaAliases
-
wantDecode
Description copied from interface:ContentEncoding
Method should implement the logic, which decides if HTTP packet with the specificHttpHeader
should be decoded using this ContentEncoding.- Specified by:
wantDecode
in interfaceContentEncoding
- Parameters:
header
- HTTP packet header.- Returns:
- true, if this ContentEncoding should be used to decode the HTTP packet, or false otherwise.
-
wantEncode
Description copied from interface:ContentEncoding
Method should implement the logic, which decides if HTTP packet with the specificHttpHeader
should be encoded using this ContentEncoding.- Specified by:
wantEncode
in interfaceContentEncoding
- Parameters:
header
- HTTP packet header.- Returns:
- true, if this ContentEncoding should be used to encode the HTTP packet, or false otherwise.
-
decode
Description copied from interface:ContentEncoding
Decode HTTP packet content represented byHttpContent
.- Specified by:
decode
in interfaceContentEncoding
- Parameters:
connection
-Connection
.httpContent
-HttpContent
to decode.- Returns:
ParsingResult
, which represents the result of decoding.
-
encode
Description copied from interface:ContentEncoding
Encode HTTP packet content represented byHttpContent
.- Specified by:
encode
in interfaceContentEncoding
- Parameters:
connection
-Connection
.httpContent
-HttpContent
to encode.- Returns:
- encoded
HttpContent
.
-
equals
-
hashCode
public int hashCode()
-