| Modifier and Type | Class and Description |
|---|---|
| private static class | DecompressorRegistry.DecompressorInfo
Information about a decompressor. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Joiner | |
| private final byte[] | |
| private final Map | |
| private static final DecompressorRegistry |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DecompressorRegistry | |
| public Set | getAdvertisedMessageEncodings()
Provides a list of all message encodings that have decompressors available and should be advertised. |
| public static DecompressorRegistry | |
| public Set | getKnownMessageEncodings()
Provides a list of all message encodings that have decompressors available. |
| pack-priv byte[] | |
| public Decompressor | lookupDecompressor(String messageEncoding)
Returns a decompressor for the given message encoding, or |
| public DecompressorRegistry | with(Decompressor
The decompressor to register d, boolean If true, the message encoding will be listed in the Accept-Encoding header. advertised)Registers a decompressor for both decompression and message encoding negotiation. |
| ACCEPT_ENCODING_JOINER | back to summary |
|---|---|
| pack-priv static final Joiner ACCEPT_ENCODING_JOINER | |
| advertisedDecompressors | back to summary |
|---|---|
| private final byte[] advertisedDecompressors | |
| decompressors | back to summary |
|---|---|
| private final Map<String, DecompressorRegistry. | |
| DEFAULT_INSTANCE | back to summary |
|---|---|
| private static final DecompressorRegistry DEFAULT_INSTANCE | |
| DecompressorRegistry | back to summary |
|---|---|
| private DecompressorRegistry(Decompressor d, boolean advertised, DecompressorRegistry parent) | |
| DecompressorRegistry | back to summary |
|---|---|
| private DecompressorRegistry() | |
| emptyInstance | back to summary |
|---|---|
| public static DecompressorRegistry emptyInstance() | |
| getAdvertisedMessageEncodings | back to summary |
|---|---|
| public Set Provides a list of all message encodings that have decompressors available and should be advertised. The specification doesn't say anything about ordering, or preference, so the returned codes can be arbitrary.
| |
| getDefaultInstance | back to summary |
|---|---|
| public static DecompressorRegistry getDefaultInstance() | |
| getKnownMessageEncodings | back to summary |
|---|---|
| public Set Provides a list of all message encodings that have decompressors available. | |
| getRawAdvertisedMessageEncodings | back to summary |
|---|---|
| pack-priv byte[] getRawAdvertisedMessageEncodings() | |
| lookupDecompressor | back to summary |
|---|---|
| public Decompressor lookupDecompressor(String messageEncoding) Returns a decompressor for the given message encoding, or This ignores whether the compressor is advertised. According to the spec, if we know how to process this encoding, we attempt to, regardless of whether or not it is part of the encodings sent to the remote host.
| |
| with | back to summary |
|---|---|
| public DecompressorRegistry with(Decompressor d, boolean advertised) Registers a decompressor for both decompression and message encoding negotiation. Returns a new registry.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final boolean | |
| pack-priv final Decompressor |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| advertised | back to summary |
|---|---|
| pack-priv final boolean advertised | |
| decompressor | back to summary |
|---|---|
| pack-priv final Decompressor decompressor | |
| DecompressorInfo | back to summary |
|---|---|
| pack-priv DecompressorInfo(Decompressor decompressor, boolean advertised) | |