Package org.thymeleaf.util
Class ContentTypeUtils
Object
org.thymeleaf.util.ContentTypeUtils
Utility class containing methods for computing content type-related data.
This class is internal and should not be used from users code.
- Since:
- 3.0.6
- Author:
- Daniel Fernández
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcombineContentTypeAndCharset(String contentType, Charset charset) static CharsetcomputeCharsetFromContentType(String contentType) static StringcomputeContentTypeForRequestPath(String requestPath, Charset charset) static StringcomputeContentTypeForTemplateName(String templateName, Charset charset) static TemplateModecomputeTemplateModeForContentType(String contentType) static TemplateModecomputeTemplateModeForRequestPath(String requestPath) static TemplateModecomputeTemplateModeForTemplateName(String templateName) static booleanhasRecognizedFileExtension(String templateName) static booleanisContentTypeAtom(String contentType) static booleanisContentTypeCSS(String contentType) static booleanisContentTypeHTML(String contentType) static booleanisContentTypeJavaScript(String contentType) static booleanisContentTypeJSON(String contentType) static booleanisContentTypeRSS(String contentType) static booleanisContentTypeSSE(String contentType) static booleanisContentTypeText(String contentType) static booleanisContentTypeXML(String contentType)
-
Method Details
-
isContentTypeHTML
-
isContentTypeXML
-
isContentTypeRSS
-
isContentTypeAtom
-
isContentTypeJavaScript
-
isContentTypeJSON
-
isContentTypeCSS
-
isContentTypeText
-
isContentTypeSSE
-
computeTemplateModeForContentType
-
computeTemplateModeForTemplateName
-
computeTemplateModeForRequestPath
-
hasRecognizedFileExtension
-
computeContentTypeForTemplateName
-
computeContentTypeForRequestPath
-
computeCharsetFromContentType
-
combineContentTypeAndCharset
-