|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.framework.util.MimeTypeMapper
public class MimeTypeMapper
Helper class to check for supported mime types.
Constructor Summary | |
---|---|
MimeTypeMapper()
|
Method Summary | |
---|---|
static boolean |
isImageType(java.lang.String contentType)
Returns true if the submitted content type is an image type. |
static boolean |
isKnownImageType(java.lang.String contentType)
Returns true if the submitted image content type is known by deegree. |
static boolean |
isKnownMimeType(java.lang.String contentType)
Returns true if the submitted content type is known by the deegree OWS implementations. |
static boolean |
isKnownOGCType(java.lang.String contentType)
|
static boolean |
isOGCType(java.lang.String contentType)
Returns true if the submitted content type is defined by the OGC. |
static java.lang.String |
toMimeType(java.lang.String contentType)
maps a 'simple' format name like gif, jpg or text to the corresponding mime type --> e.g. image/gif, image/jpeg or text/plain |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MimeTypeMapper()
Method Detail |
---|
public static boolean isOGCType(java.lang.String contentType)
contentType
- mime type to check
public static boolean isImageType(java.lang.String contentType)
contentType
- mime type to check
public static boolean isKnownImageType(java.lang.String contentType)
contentType
- mime type to check
public static boolean isKnownMimeType(java.lang.String contentType)
contentType
- mime type to check
public static boolean isKnownOGCType(java.lang.String contentType)
contentType
-
public static java.lang.String toMimeType(java.lang.String contentType)
contentType
-
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org