Enum MimeType
- java.lang.Object
-
- java.lang.Enum<MimeType>
-
- com.trivago.cluecumber.engine.constants.MimeType
-
- All Implemented Interfaces:
Serializable,Comparable<MimeType>
public enum MimeType extends Enum<MimeType>
Enum to get all MimeTypes for embedded content.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()static MimeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MimeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PNG
@SerializedName("image/png") public static final MimeType PNG
-
GIF
@SerializedName("image/gif") public static final MimeType GIF
-
BMP
@SerializedName("image/bmp") public static final MimeType BMP
-
JPG
@SerializedName("image/jpg") public static final MimeType JPG
-
JPEG
@SerializedName("image/jpeg") public static final MimeType JPEG
-
SVG
@SerializedName("image/svg") public static final MimeType SVG
-
SVG_XML
@SerializedName("image/svg+xml") public static final MimeType SVG_XML
-
HTML
@SerializedName("text/html") public static final MimeType HTML
-
XML
@SerializedName("text/xml") public static final MimeType XML
-
APPLICATION_XML
@SerializedName("application/xml") public static final MimeType APPLICATION_XML
-
JSON
@SerializedName("application/json") public static final MimeType JSON
-
TXT
@SerializedName("text/plain") public static final MimeType TXT
-
PDF
@SerializedName("application/pdf") public static final MimeType PDF
-
MP4
@SerializedName("video/mp4") public static final MimeType MP4
-
UNKNOWN
@SerializedName("unknown") public static final MimeType UNKNOWN
-
-
Method Detail
-
values
public static MimeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MimeType c : MimeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MimeType 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 nameNullPointerException- if the argument is null
-
getContentType
public String getContentType()
-
-