org.deegree_impl.tools
Class MimeTypeMapper

java.lang.Object
  extended byorg.deegree_impl.tools.MimeTypeMapper

public class MimeTypeMapper
extends java.lang.Object

Version:
Author:
Axel Schaefer, Andreas Poth

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 the deegree implementations
static boolean isKnownMimeType(java.lang.String contentType)
          returns true if the submitted content type is known by the deegree OWS implementations
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

MimeTypeMapper

public MimeTypeMapper()
Method Detail

isOGCType

public static boolean isOGCType(java.lang.String contentType)
returns true if the submitted content type is defined by the OGC

Parameters:
contentType -
Returns:

isImageType

public static boolean isImageType(java.lang.String contentType)
returns true if the submitted content type is an image type

Parameters:
contentType -
Returns:

isKnownImageType

public static boolean isKnownImageType(java.lang.String contentType)
returns true if the submitted image content type is known by the deegree implementations

Parameters:
contentType -
Returns:

isKnownMimeType

public static boolean isKnownMimeType(java.lang.String contentType)
returns true if the submitted content type is known by the deegree OWS implementations

Parameters:
contentType -
Returns:

toMimeType

public 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

Parameters:
contentType -
Returns: