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 SummaryModifier and TypeMethodDescriptionAdd a mime.Get a configured mime.getMimes()Get list of configured mimes.
- 
Method Details- 
getMimesList<MimeConfig> getMimes()Get list of configured mimes.- Returns:
- mime types
 
- 
getMimeGet a configured mime.- Parameters:
- extension- the mime type extension
- Returns:
- mime or null if not configured
 
- 
addMimeAdd 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
 
 
-