Interface MimeTypeManager

All Known Implementing Classes:
DefaultMimeTypeManager

public interface MimeTypeManager
The MimeTypeManager API.
Author:
Manfred Riem ([email protected])
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addMimeType​(String extension, String mimeType)
    Add the mime type.
    getMimeType​(String filename)
    Get the mime type.
  • Method Details

    • 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.