|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.util.AttachmentMimeTypeTranslator
public final class AttachmentMimeTypeTranslator
Translates mime types for attachments.
Used to sanitize mime types for file uploads. CONF-18951
| Constructor Summary | |
|---|---|
AttachmentMimeTypeTranslator()
|
|
| Method Summary | |
|---|---|
java.lang.String |
resolveMimeType(java.lang.String filename,
java.lang.String originalMimeType)
Resolve a mime type based on the filename. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttachmentMimeTypeTranslator()
| Method Detail |
|---|
public java.lang.String resolveMimeType(java.lang.String filename,
java.lang.String originalMimeType)
originalMimeType
might be used if there is no mime type registered for the given file
type.
filename - The name of the file. The file extension will be used to
determine the mime type.originalMimeType - The original mime type. This method might return the original
mime type if it can not resolve a proper mime type for the
given filename.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||