Package org.thymeleaf.util
Class ContentTypeUtils
-
- org.thymeleaf.util.ContentTypeUtils
-
public final class ContentTypeUtils extends
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static
contentType, charset)
static
contentType)
static
requestPath, charset)
static
templateName, charset)
static TemplateMode
contentType)
static TemplateMode
requestPath)
static TemplateMode
templateName)
static boolean
templateName)
static boolean
contentType)
static boolean
contentType)
static boolean
contentType)
static boolean
contentType)
static boolean
contentType)
static boolean
contentType)
static boolean
contentType)
static boolean
contentType)
static boolean
contentType)
-
-
-
Method Detail
-
isContentTypeHTML
public static boolean isContentTypeHTML( contentType)
-
isContentTypeXML
public static boolean isContentTypeXML( contentType)
-
isContentTypeRSS
public static boolean isContentTypeRSS( contentType)
-
isContentTypeAtom
public static boolean isContentTypeAtom( contentType)
-
isContentTypeJavaScript
public static boolean isContentTypeJavaScript( contentType)
-
isContentTypeJSON
public static boolean isContentTypeJSON( contentType)
-
isContentTypeCSS
public static boolean isContentTypeCSS( contentType)
-
isContentTypeText
public static boolean isContentTypeText( contentType)
-
isContentTypeSSE
public static boolean isContentTypeSSE( contentType)
-
computeTemplateModeForContentType
public static contentType)
-
computeTemplateModeForTemplateName
public static templateName)
-
computeTemplateModeForRequestPath
public static requestPath)
-
hasRecognizedFileExtension
public static boolean hasRecognizedFileExtension( templateName)
-
computeContentTypeForTemplateName
public static computeContentTypeForTemplateName( templateName, charset)
-
computeContentTypeForRequestPath
public static computeContentTypeForRequestPath( requestPath, charset)
-
computeCharsetFromContentType
public static computeCharsetFromContentType( contentType)
-
combineContentTypeAndCharset
public static combineContentTypeAndCharset( contentType, charset)
-
-