public static enum HttpClientConfig.CompressionCodec extends Enum<HttpClientConfig.CompressionCodec>
Modifier and Type | Method and 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.
|
public static final HttpClientConfig.CompressionCodec IDENTITY
public static final HttpClientConfig.CompressionCodec GZIP
public static final HttpClientConfig.CompressionCodec DEFLATE
public static HttpClientConfig.CompressionCodec[] values()
for (HttpClientConfig.CompressionCodec c : HttpClientConfig.CompressionCodec.values()) System.out.println(c);
public static HttpClientConfig.CompressionCodec valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract String getEncodingString()
Copyright © 2011–2018. All rights reserved.