MimeType#add(String, String), however, keep in mind that these mappings are per-JVM.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static boolean | |
| public static String | |
| public static String | |
| public static String | getByFilename(String
the filename fileName)Returns: the content type associated with |
| private static String |
| contentTypes | back to summary |
|---|---|
| private static final Map<String, String> contentTypes | |
| MimeType | back to summary |
|---|---|
| public MimeType() | |
| add | back to summary |
|---|---|
| public static void add(String extension, String contentType) Associates the specified extension and content type | |
| contains | back to summary |
|---|---|
public static boolean contains(String extension)
| |
| get | back to summary |
|---|---|
| public static String get(String extension) | |
| get | back to summary |
|---|---|
| public static String get(String extension, String defaultCt) | |
| getByFilename | back to summary |
|---|---|
| public static String getByFilename(String fileName) | |
| getExtension | back to summary |
|---|---|
| private static String getExtension(String fileName) Get extension of file, without fragment id | |