Class ContentTypeAnalyzerImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.services.assets.ContentTypeAnalyzerImpl
-
- All Implemented Interfaces:
ContentTypeAnalyzer
public class ContentTypeAnalyzerImpl extends Object implements ContentTypeAnalyzer
-
-
Constructor Summary
Constructors Constructor Description ContentTypeAnalyzerImpl(Context context, Map<String,String> configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType(Resource resource)Analyze the resource to determine its content type.
-
-
-
Constructor Detail
-
ContentTypeAnalyzerImpl
public ContentTypeAnalyzerImpl(Context context, Map<String,String> configuration)
-
-
Method Detail
-
getContentType
public String getContentType(Resource resource)
Description copied from interface:ContentTypeAnalyzerAnalyze the resource to determine its content type.- Specified by:
getContentTypein interfaceContentTypeAnalyzer- Parameters:
resource- to analyze- Returns:
- a MIME content type
-
-