Interface MimeTypeResolver
public interface MimeTypeResolver
Resolves MIME types by file extension.
- Version:
- 2025-05-12
-
Method Summary
Modifier and TypeMethodDescriptiongetMimeType(String path, String ext) Returns a MIME type for the specified path / extension.
-
Method Details
-
getMimeType
Returns a MIME type for the specified path / extension. Typically just the extension is used to lookup a mime type, but the path is provided to provide context for the request. This allows a resolver to restrict custom mime types to a particular set of paths.- Parameters:
path- the full path to the requested fileext- the lowercase extension from the path- Returns:
- the matching mime type or null
-