Class DefaultMimeTypeManager

    • Constructor Detail

      • DefaultMimeTypeManager

        public DefaultMimeTypeManager()
        Constructor.
    • Method Detail

      • addMimeType

        public void addMimeType​(String extension,
                                String mimeType)
        Add the mime type.
        Specified by:
        addMimeType in interface MimeTypeManager
        Parameters:
        extension - the extension (without the dot).
        mimeType - the mime type to return.
      • getMimeType

        public String getMimeType​(String filename)
        Get the mime type.
        Specified by:
        getMimeType in interface MimeTypeManager
        Parameters:
        filename - the filename.
        Returns:
        the mime type, or null if not found.