Enum HttpClientConfig.CompressionCodec
java.lang.Object
java.lang.Enum<HttpClientConfig.CompressionCodec>
org.apache.druid.java.util.http.client.HttpClientConfig.CompressionCodec
- All Implemented Interfaces:
Serializable,Comparable<HttpClientConfig.CompressionCodec>
- Enclosing class:
HttpClientConfig
public static enum HttpClientConfig.CompressionCodec
extends Enum<HttpClientConfig.CompressionCodec>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract StringGet the header-ified name of this encoding, which should go in "Accept-Encoding" and "Content-Encoding" headers.Returns the enum constant of this type with the specified name.static HttpClientConfig.CompressionCodec[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IDENTITY
-
GZIP
-
DEFLATE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getEncodingString
Get the header-ified name of this encoding, which should go in "Accept-Encoding" and "Content-Encoding" headers. This is not just the lowercasing of the enum name, since we may one day support x- encodings like LZ4, which would likely be an enum named "LZ4" that has an encoding string like "x-lz4".- Returns:
- encoding name
-