Interface MimeTypeManager

  • All Known Implementing Classes:
    DefaultMimeTypeManager

    public interface MimeTypeManager
    The MimeTypeManager API.
    Author:
    Manfred Riem (mriem@manorrock.com)
    • Method Detail

      • addMimeType

        void addMimeType​(String extension,
                         String mimeType)
        Add the mime type.
        Parameters:
        extension - the extension (without the dot).
        mimeType - the mime type to return.
      • getMimeType

        String getMimeType​(String filename)
        Get the mime type.
        Parameters:
        filename - the filename.
        Returns:
        the mime type or null if not found.