public enum EMime extends Enum<EMime>
Enum Constant and Description |
---|
APP_JAVASCRIPT |
APP_JSON |
APP_OCTET |
APP_PDF |
APP_XML |
APP_ZIP |
IMG_JPG |
IMG_PNG |
TEXT_CSS |
TEXT_HTML |
TEXT_PLAIN |
Modifier and Type | Field and Description |
---|---|
String |
contentType |
String |
defaultExtension |
Modifier and Type | Method and Description |
---|---|
static EMime |
getByContentType(String contentType) |
static EMime |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EMime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EMime APP_JSON
public static final EMime APP_XML
public static final EMime APP_OCTET
public static final EMime APP_PDF
public static final EMime APP_ZIP
public static final EMime APP_JAVASCRIPT
public static final EMime TEXT_HTML
public static final EMime TEXT_PLAIN
public static final EMime TEXT_CSS
public static final EMime IMG_PNG
public static final EMime IMG_JPG
public final String contentType
public final String defaultExtension
public static EMime[] values()
for (EMime c : EMime.values()) System.out.println(c);
public static EMime 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 nullCopyright © 2019 XIMA MEDIA GmbH. All rights reserved.