Interface MimesConfig
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionAdd a mime.Get a configured mime.getMimes()
Get list of configured mimes.
-
Method Details
-
getMimes
List<MimeConfig> getMimes()Get list of configured mimes.- Returns:
- mime types
-
getMime
Get a configured mime.- Parameters:
extension
- the mime type extension- Returns:
- mime or null if not configured
-
addMime
Add a mime.- Parameters:
extension
- the extensiontype
- the mime type that the extension maps to- Returns:
- new mime mapping
- Throws:
ConfigException
- if unable to add mime
-