|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.mime.MimeManager
Field Summary | |
static java.util.List |
GENERIC_MIME_TYPES
A list of mime types that we wish to override. |
Constructor Summary | |
MimeManager(java.io.InputStream mimeTypesInputStream)
|
Method Summary | |
java.lang.String |
getSanitisedMimeType(java.lang.String existingMimeType,
java.lang.String fileName)
If the existing mime type is listed in GENERIC_MIME_TYPES , then return a suggested
replacement. |
java.lang.String |
getSuggestedMimeType(java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.util.List GENERIC_MIME_TYPES
Constructor Detail |
public MimeManager(java.io.InputStream mimeTypesInputStream)
Method Detail |
public java.lang.String getSanitisedMimeType(java.lang.String existingMimeType, java.lang.String fileName)
GENERIC_MIME_TYPES
, then return a suggested
replacement. Else return the original mime type.
Useful when uploading files, and the browser is lazy / sets the wrong content type.
public java.lang.String getSuggestedMimeType(java.lang.String fileName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |