Enum DefaultMediaTypePredictor.CommonMediaTypes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DefaultMediaTypePredictor.CommonMediaTypes>
    Enclosing class:
    DefaultMediaTypePredictor

    public static enum DefaultMediaTypePredictor.CommonMediaTypes
    extends java.lang.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
    • ".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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String extension  
      private javax.ws.rs.core.MediaType mediaType  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CommonMediaTypes​(java.lang.String extension, javax.ws.rs.core.MediaType mediaType)