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>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
getEncodingString()
Get the header-ified name of this encoding, which should go in "Accept-Encoding" and "Content-Encoding" headers.static HttpClientConfig.CompressionCodec
valueOf(String name)
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 Detail
-
IDENTITY
public static final HttpClientConfig.CompressionCodec IDENTITY
-
GZIP
public static final HttpClientConfig.CompressionCodec GZIP
-
DEFLATE
public static final HttpClientConfig.CompressionCodec DEFLATE
-
-
Method Detail
-
values
public static HttpClientConfig.CompressionCodec[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpClientConfig.CompressionCodec c : HttpClientConfig.CompressionCodec.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpClientConfig.CompressionCodec valueOf(String name)
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
public abstract String 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
-
-