Package org.apache.myfaces.renderkit
Class ContentTypeUtils
java.lang.Object
org.apache.myfaces.renderkit.ContentTypeUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
chooseWriterContentType
(String contentTypeListString, String[] htmlContentTypes, String[] xhtmlContentTypes) static boolean
containsContentType
(String contentType, String[] allowedContentTypes) Indicate if the passes content type match one of the options passed.static String
static String[]
static boolean
isXHTMLContentType
(String contentType) static String[]
splitContentTypeListString
(String contentTypeListString)
-
Field Details
-
HTML_CONTENT_TYPE
- See Also:
-
TEXT_ANY_CONTENT_TYPE
- See Also:
-
ANY_CONTENT_TYPE
- See Also:
-
HTML_ALLOWED_CONTENT_TYPES
-
XHTML_CONTENT_TYPE
- See Also:
-
APPLICATION_XML_CONTENT_TYPE
- See Also:
-
TEXT_XML_CONTENT_TYPE
- See Also:
-
XHTML_ALLOWED_CONTENT_TYPES
-
AJAX_XHTML_ALLOWED_CONTENT_TYPES
-
DEFAULT_CHAR_ENCODING
- See Also:
-
-
Constructor Details
-
ContentTypeUtils
public ContentTypeUtils()
-
-
Method Details
-
containsContentType
Indicate if the passes content type match one of the options passed. -
chooseWriterContentType
-
splitContentTypeListString
-
getContentTypeFromAcceptHeader
-
getSupportedContentTypes
-
isXHTMLContentType
-