public enum UploadedFileContentType extends Enum<UploadedFileContentType>
Only common content types are included.
| Enum Constant and Description |
|---|
CSS |
CSV |
DOC |
GIF |
HTML |
JAVASCRIPT |
JPG |
JSON |
MP3 |
MP4 |
MPEG |
PDF |
PNG |
TXT |
XLS |
XML |
ZIP |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
static UploadedFileContentType |
getFileExtension(String contentType) |
static UploadedFileContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UploadedFileContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UploadedFileContentType CSS
public static final UploadedFileContentType CSV
public static final UploadedFileContentType DOC
public static final UploadedFileContentType GIF
public static final UploadedFileContentType HTML
public static final UploadedFileContentType JAVASCRIPT
public static final UploadedFileContentType JPG
public static final UploadedFileContentType JSON
public static final UploadedFileContentType MP3
public static final UploadedFileContentType MP4
public static final UploadedFileContentType MPEG
public static final UploadedFileContentType PDF
public static final UploadedFileContentType PNG
public static final UploadedFileContentType TXT
public static final UploadedFileContentType XLS
public static final UploadedFileContentType XML
public static final UploadedFileContentType ZIP
public static UploadedFileContentType[] values()
for (UploadedFileContentType c : UploadedFileContentType.values()) System.out.println(c);
public static UploadedFileContentType 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 static UploadedFileContentType getFileExtension(String contentType)
public String getContentType()
Copyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.