Class MediaTypeResolver


  • public final class MediaTypeResolver
    extends java.lang.Object
    Resolve media types for files
    Since:
    10.1
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getMediaType​(java.lang.String fileName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getMediaType

        public static java.lang.String getMediaType​(java.lang.String fileName)
        Parameters:
        fileName - The file name
        Returns:
        The media type based on the internal mime.types file, or null if not found.