Enum Class DefaultMediaTypePredictor.CommonMediaTypes

java.lang.Object
java.lang.Enum<DefaultMediaTypePredictor.CommonMediaTypes>
org.glassfish.jersey.media.multipart.file.DefaultMediaTypePredictor.CommonMediaTypes
All Implemented Interfaces:
Serializable, Comparable<DefaultMediaTypePredictor.CommonMediaTypes>, java.lang.constant.Constable
Enclosing class:
DefaultMediaTypePredictor

public static enum DefaultMediaTypePredictor.CommonMediaTypes extends Enum<DefaultMediaTypePredictor.CommonMediaTypes>
This enum represents file extension and MIME types of commonly used file. It is to be noted that all file extension and MIME types are specified in lower case, when checking the extension this should be kept in mind. Currently supported file extension and MIME Types are -
  • ".xml" - application/xml
  • ".json - application/json
  • ".txt" - text/plain
  • ".pdf" - application/pdf
  • ".htm" - text/html
  • ".html" - text/html
  • ".jpg" - image/jpeg
  • ".png" - image/png
  • ".gif" - image/gif
  • ".bmp" - image/bmp
  • ".tar" - application/x-tar
  • ".zip" - application/zip
  • ".gz" - application/x-gzip
  • ".rar" - application/x-rar
  • ".mp3" - audio/mpeg
  • ".wav" - audio/x-wave
  • ".avi" - video/x-msvideo
  • ".mpeg" - video/mpeg