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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLICATION_XMLAlternative XML formatBMPBMP image formatGIFGIF image formatHTMLHTML formatJPEGJPEG image formatJPGJPG image formatJSONJSON formatMP4MP4 video formatPDFPDF formatPNGPNG image formatSVGSVG image formatSVG_XMLSVG with XML image formatTXTPlain TXT formatUNKNOWNUnknown formatXMLXML format
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()Get the content type of this mime type.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 PNGPNG image format
-
GIF
@SerializedName("image/gif") public static final MimeType GIFGIF image format
-
BMP
@SerializedName("image/bmp") public static final MimeType BMPBMP image format
-
JPG
@SerializedName("image/jpg") public static final MimeType JPGJPG image format
-
JPEG
@SerializedName("image/jpeg") public static final MimeType JPEGJPEG image format
-
SVG
@SerializedName("image/svg") public static final MimeType SVGSVG image format
-
SVG_XML
@SerializedName("image/svg+xml") public static final MimeType SVG_XMLSVG with XML image format
-
HTML
@SerializedName("text/html") public static final MimeType HTMLHTML format
-
XML
@SerializedName("text/xml") public static final MimeType XMLXML format
-
APPLICATION_XML
@SerializedName("application/xml") public static final MimeType APPLICATION_XMLAlternative XML format
-
JSON
@SerializedName("application/json") public static final MimeType JSONJSON format
-
TXT
@SerializedName("text/plain") public static final MimeType TXTPlain TXT format
-
PDF
@SerializedName("application/pdf") public static final MimeType PDFPDF format
-
MP4
@SerializedName("video/mp4") public static final MimeType MP4MP4 video format
-
UNKNOWN
@SerializedName("unknown") public static final MimeType UNKNOWNUnknown format
-
-
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()
Get the content type of this mime type.- Returns:
- The content type.
-
-