@UsesMappedConfiguration(value=java.lang.String.class) public interface ContentTypeAnalyzer
Context.getMimeType(String), and then (finally) "application/octet-stream"
as a stop-gap.
The service configuration maps the file extension (e.g., "png") to its corresponding MIME type (e.g., "image/png");| Modifier and Type | Method and Description |
|---|---|
String |
getContentType(Resource resource)
Analyze the resource to determine its content type.
|
String getContentType(Resource resource)
resource - to analyze5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.