java.lang.Object
org.glassfish.grizzly.http.LZMAContentEncoding
- All Implemented Interfaces:
ContentEncoding
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.booleanString[]Get the ContentEncoding aliases.static String[]getName()Get the ContentEncoding name.inthashCode()booleanwantDecode(HttpHeader header) Method should implement the logic, which decides if HTTP packet with the specificHttpHeadershould be decoded using this ContentEncoding.booleanwantEncode(HttpHeader header) Method should implement the logic, which decides if HTTP packet with the specificHttpHeadershould be encoded using this ContentEncoding.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
LZMAContentEncoding
public LZMAContentEncoding() -
LZMAContentEncoding
-
-
Method Details
-
getName
Description copied from interface:ContentEncodingGet the ContentEncoding name.- Specified by:
getNamein interfaceContentEncoding- Returns:
- the ContentEncoding name.
-
getAliases
Description copied from interface:ContentEncodingGet the ContentEncoding aliases.- Specified by:
getAliasesin interfaceContentEncoding- Returns:
- the ContentEncoding aliases.
-
getLzmaAliases
-
wantDecode
Description copied from interface:ContentEncodingMethod should implement the logic, which decides if HTTP packet with the specificHttpHeadershould be decoded using this ContentEncoding.- Specified by:
wantDecodein 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:ContentEncodingMethod should implement the logic, which decides if HTTP packet with the specificHttpHeadershould be encoded using this ContentEncoding.- Specified by:
wantEncodein 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:ContentEncodingDecode HTTP packet content represented byHttpContent.- Specified by:
decodein interfaceContentEncoding- Parameters:
connection-Connection.httpContent-HttpContentto decode.- Returns:
ParsingResult, which represents the result of decoding.
-
encode
Description copied from interface:ContentEncodingEncode HTTP packet content represented byHttpContent.- Specified by:
encodein interfaceContentEncoding- Parameters:
connection-Connection.httpContent-HttpContentto encode.- Returns:
- encoded
HttpContent.
-
equals
-
hashCode
public int hashCode()
-