Interface MimesConfig

All Superinterfaces:
Config

public interface MimesConfig extends Config
Mimes - as used in Web server file services.

This provides a map of mime extensions or suffixes to mime types.

Since:
4.4
  • Method Details

    • getMimes

      List<MimeConfig> getMimes()
      Get list of configured mimes.
      Returns:
      mime types
    • getMime

      MimeConfig getMime(String extension)
      Get a configured mime.
      Parameters:
      extension - the mime type extension
      Returns:
      mime or null if not configured
    • addMime

      MimeConfig addMime(String extension, String type) throws ConfigException
      Add a mime.
      Parameters:
      extension - the extension
      type - the mime type that the extension maps to
      Returns:
      new mime mapping
      Throws:
      ConfigException - if unable to add mime