public final class ContentTypeUtils extends Object
Utility class containing methods for computing content type-related data.
This class is internal and should not be used from users code.
public static boolean isContentTypeHTML(String contentType)
public static boolean isContentTypeXML(String contentType)
public static boolean isContentTypeRSS(String contentType)
public static boolean isContentTypeAtom(String contentType)
public static boolean isContentTypeJavaScript(String contentType)
public static boolean isContentTypeJSON(String contentType)
public static boolean isContentTypeCSS(String contentType)
public static boolean isContentTypeText(String contentType)
public static boolean isContentTypeSSE(String contentType)
public static TemplateMode computeTemplateModeForContentType(String contentType)
public static TemplateMode computeTemplateModeForTemplateName(String templateName)
public static TemplateMode computeTemplateModeForRequestPath(String requestPath)
public static boolean hasRecognizedFileExtension(String templateName)
public static String computeContentTypeForTemplateName(String templateName, Charset charset)
public static String computeContentTypeForRequestPath(String requestPath, Charset charset)
public static Charset computeCharsetFromContentType(String contentType)
Copyright © 2017 The THYMELEAF team. All rights reserved.