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 Details

  • Method Details

    • values

      public static HttpClientConfig.CompressionCodec[] 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

      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 name
      NullPointerException - 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