public enum ContentTypeDefaults extends Enum<ContentTypeDefaults>
Content-Types.| Modifier and Type | Method and Description |
|---|---|
static ContentTypeDefaults |
fromString(String contentTypeString) |
static Set<String> |
getAllContentTypesVariations() |
String |
getMainVariation() |
String |
getMainVariationWithUtf8Charset() |
Set<String> |
getVariations() |
static ContentTypeDefaults |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentTypeDefaults[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentTypeDefaults TEXT
public static final ContentTypeDefaults JSON
public static final ContentTypeDefaults XML
public static final ContentTypeDefaults HTML
public static final ContentTypeDefaults BINARY
public static ContentTypeDefaults[] values()
for (ContentTypeDefaults c : ContentTypeDefaults.values()) System.out.println(c);
public static ContentTypeDefaults 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 getMainVariation()
public String getMainVariationWithUtf8Charset()
public static ContentTypeDefaults fromString(String contentTypeString)
Copyright © 2016. All rights reserved.