Package org.thymeleaf.util
Class ContentTypeUtils
java.lang.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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final String[]private static final Map<String, TemplateMode> -
Constructor Summary
Constructors -
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) private static StringcomputeFileExtensionFromRequestPath(String requestPath) private static StringcomputeFileExtensionFromTemplateName(String templateName) static TemplateModecomputeTemplateModeForContentType(String contentType) static TemplateModecomputeTemplateModeForRequestPath(String requestPath) static TemplateModecomputeTemplateModeForTemplateName(String templateName) static booleanhasRecognizedFileExtension(String templateName) private static booleanisContentType(String contentType, String matcher) 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)
-
Field Details
-
MIME_TYPES_HTML
-
MIME_TYPES_XML
-
MIME_TYPES_RSS
-
MIME_TYPES_ATOM
-
MIME_TYPES_JAVASCRIPT
-
MIME_TYPES_JSON
-
MIME_TYPES_CSS
-
MIME_TYPES_TEXT
-
MIME_TYPES_SSE
-
FILE_EXTENSIONS_HTML
-
FILE_EXTENSIONS_XML
-
FILE_EXTENSIONS_RSS
-
FILE_EXTENSIONS_ATOM
-
FILE_EXTENSIONS_JAVASCRIPT
-
FILE_EXTENSIONS_JSON
-
FILE_EXTENSIONS_CSS
-
FILE_EXTENSIONS_TEXT
-
NORMALIZED_MIME_TYPES
-
MIME_TYPE_BY_FILE_EXTENSION
-
TEMPLATE_MODE_BY_MIME_TYPE
-
-
Constructor Details
-
ContentTypeUtils
private ContentTypeUtils()
-
-
Method Details
-
isContentTypeHTML
-
isContentTypeXML
-
isContentTypeRSS
-
isContentTypeAtom
-
isContentTypeJavaScript
-
isContentTypeJSON
-
isContentTypeCSS
-
isContentTypeText
-
isContentTypeSSE
-
isContentType
-
computeTemplateModeForContentType
-
computeTemplateModeForTemplateName
-
computeTemplateModeForRequestPath
-
hasRecognizedFileExtension
-
computeContentTypeForTemplateName
-
computeContentTypeForRequestPath
-
computeCharsetFromContentType
-
computeFileExtensionFromTemplateName
-
computeFileExtensionFromRequestPath
-
combineContentTypeAndCharset
-