|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.util.Extensions
Determines ContentType
based on file extensions.
Field Summary | |
private static java.util.Map |
contentTypeMap
A PropertyMap mapping extensions to content types |
Constructor Summary | |
private |
Extensions()
Non-instantiable class. |
Method Summary | |
static ContentType |
getExtensionContentType(java.lang.String extension)
Returns the content type associated with the specified extension. |
static ContentType |
getFileNameContentType(java.lang.String fileName)
Returns the content type associated with the provided file name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.util.Map contentTypeMap
Constructor Detail |
private Extensions()
Method Detail |
public static ContentType getExtensionContentType(java.lang.String extension)
extension
- The extension whose content type is to be determined.
public static ContentType getFileNameContentType(java.lang.String fileName)
fileName
- The file name whose content type is to be determined.
|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |