Enum Class 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>,Constable
- Enclosing class:
- HttpClientConfig
public static enum HttpClientConfig.CompressionCodec
extends Enum<HttpClientConfig.CompressionCodec>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
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 class with the specified name.static HttpClientConfig.CompressionCodec[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDENTITY
-
GZIP
-
DEFLATE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
-