Class DefaultContentTypeResolver
java.lang.Object
org.flowable.common.rest.resolver.DefaultContentTypeResolver
- All Implemented Interfaces:
ContentTypeResolver
Default implementation of a
ContentTypeResolver, resolving a limited set of well-known content types used in the engine.- Author:
- Tijs Rademakers, Yvo Swillens, Tim Stephenson
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFileExtensionMapping(String fileExtension, String contentType) resolveContentType(String resourceName) voidsetUnknownFileContentType(String unknownFileContentType)
-
Field Details
-
fileExtensionToContentType
-
unknownFileContentType
-
-
Constructor Details
-
DefaultContentTypeResolver
public DefaultContentTypeResolver()
-
-
Method Details
-
resolveContentType
- Specified by:
resolveContentTypein interfaceContentTypeResolver- Returns:
- the content type resolved from the given resource name. Returns null if the content type cannot be resolved.
-
addFileExtensionMapping
-
setUnknownFileContentType
-