Package io.helidon.http.encoding.deflate
Class DeflateEncoding
java.lang.Object
io.helidon.http.encoding.deflate.DeflateEncoding
- All Implemented Interfaces:
NamedService
,ContentEncoding
Support for
deflate
content encoding.-
Method Summary
Modifier and TypeMethodDescriptionstatic DeflateEncoding
create()
Create a new deflate encoding.decoder()
To decode bytes.encoder()
To encode bytes.ids()
Identification(s) of this scheme as used inAccept-Encoding
andContent-Encoding
headers.name()
Name of this implementation, as provided inConfiguredProvider.create(Config, String)
.boolean
Does this provider support decoding.boolean
Does this provider support encoding.type()
Type of this implementation, to distinguish instances of same type, with differentNamedService.name()
.
-
Method Details
-
create
Create a new deflate encoding.- Returns:
- deflate encoding
-
name
Description copied from interface:NamedService
Name of this implementation, as provided inConfiguredProvider.create(Config, String)
.- Specified by:
name
in interfaceNamedService
- Returns:
- name of this service
-
type
Description copied from interface:NamedService
Type of this implementation, to distinguish instances of same type, with differentNamedService.name()
. Use for exampleConfiguredProvider.configKey()
to define the type.- Specified by:
type
in interfaceNamedService
- Returns:
- type of this service
-
ids
Description copied from interface:ContentEncoding
Identification(s) of this scheme as used inAccept-Encoding
andContent-Encoding
headers.- Specified by:
ids
in interfaceContentEncoding
- Returns:
- identifications, such as
deflate
,gzip
-
supportsEncoding
public boolean supportsEncoding()Description copied from interface:ContentEncoding
Does this provider support encoding.- Specified by:
supportsEncoding
in interfaceContentEncoding
- Returns:
- encoding supported
-
supportsDecoding
public boolean supportsDecoding()Description copied from interface:ContentEncoding
Does this provider support decoding.- Specified by:
supportsDecoding
in interfaceContentEncoding
- Returns:
- decoding supported
-
decoder
Description copied from interface:ContentEncoding
To decode bytes.- Specified by:
decoder
in interfaceContentEncoding
- Returns:
- decoder
-
encoder
Description copied from interface:ContentEncoding
To encode bytes.- Specified by:
encoder
in interfaceContentEncoding
- Returns:
- encoder
-