public enum ContentFormat extends Enum<ContentFormat>
Enum Constant and Description |
---|
FormUrlEncoded |
GZIP |
JSON |
JSON_GZIP |
JSON_LZ4 |
JSON_SNAPPY |
KRYO |
LZ4 |
NONE |
SNAPPY |
XML |
XML_GZIP |
XML_LZ4 |
XML_SNAPPY |
Modifier and Type | Method and Description |
---|---|
String |
contentEncoding() |
String |
contentType() |
static ContentFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentFormat NONE
public static final ContentFormat JSON
public static final ContentFormat JSON_LZ4
public static final ContentFormat JSON_SNAPPY
public static final ContentFormat JSON_GZIP
public static final ContentFormat XML
public static final ContentFormat XML_LZ4
public static final ContentFormat XML_SNAPPY
public static final ContentFormat XML_GZIP
public static final ContentFormat FormUrlEncoded
public static final ContentFormat KRYO
public static final ContentFormat LZ4
public static final ContentFormat SNAPPY
public static final ContentFormat GZIP
public static ContentFormat[] values()
for (ContentFormat c : ContentFormat.values()) System.out.println(c);
public static ContentFormat 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 String contentType()
public String contentEncoding()
Copyright © 2021. All rights reserved.