Class GzipEncodingProvider
java.lang.Object
io.helidon.nima.http.encoding.gzip.GzipEncodingProvider
- All Implemented Interfaces:
Weighted,ContentEncodingProvider,Comparable<Weighted>
Support for gzip content encoding.
-
Field Summary
Fields inherited from interface io.helidon.common.Weighted
DEFAULT_WEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecoder()To decode bytes.encoder()To encode bytes.ids()Identification(s) of this scheme as used inAccept-EncodingandContent-Encodingheaders.booleanDoes this provider support decoding.booleanDoes this provider support encoding.doubleweight()Weight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation).
-
Constructor Details
-
GzipEncodingProvider
public GzipEncodingProvider()
-
-
Method Details
-
ids
Description copied from interface:ContentEncodingProviderIdentification(s) of this scheme as used inAccept-EncodingandContent-Encodingheaders.- Specified by:
idsin interfaceContentEncodingProvider- Returns:
- identifications, such as
deflate,gzip
-
supportsEncoding
public boolean supportsEncoding()Description copied from interface:ContentEncodingProviderDoes this provider support encoding.- Specified by:
supportsEncodingin interfaceContentEncodingProvider- Returns:
- encoding supported
-
supportsDecoding
public boolean supportsDecoding()Description copied from interface:ContentEncodingProviderDoes this provider support decoding.- Specified by:
supportsDecodingin interfaceContentEncodingProvider- Returns:
- decoding supported
-
decoder
Description copied from interface:ContentEncodingProviderTo decode bytes.- Specified by:
decoderin interfaceContentEncodingProvider- Returns:
- decoder
-
encoder
Description copied from interface:ContentEncodingProviderTo encode bytes.- Specified by:
encoderin interfaceContentEncodingProvider- Returns:
- encoder
-
weight
public double weight()Description copied from interface:WeightedWeight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use theWeightannotation rather than implementing this interface as long as it is supported by the library using thisWeighted.
-