Package org.apache.myfaces.renderkit
Class ContentTypeUtils
- java.lang.Object
- 
- org.apache.myfaces.renderkit.ContentTypeUtils
 
- 
 public class ContentTypeUtils extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static String[]AJAX_XHTML_ALLOWED_CONTENT_TYPESstatic StringANY_CONTENT_TYPEstatic StringAPPLICATION_XML_CONTENT_TYPEstatic StringDEFAULT_CHAR_ENCODINGstatic String[]HTML_ALLOWED_CONTENT_TYPESstatic StringHTML_CONTENT_TYPEstatic StringTEXT_ANY_CONTENT_TYPEstatic StringTEXT_XML_CONTENT_TYPEstatic String[]XHTML_ALLOWED_CONTENT_TYPESstatic StringXHTML_CONTENT_TYPE
 - 
Constructor SummaryConstructors Constructor Description ContentTypeUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringchooseWriterContentType(String contentTypeListString, String[] htmlContentTypes, String[] xhtmlContentTypes)static booleancontainsContentType(String contentType, String[] allowedContentTypes)Indicate if the passes content type match one of the options passed.static StringgetContentTypeFromAcceptHeader(FacesContext context)static String[]getSupportedContentTypes()static booleanisXHTMLContentType(String contentType)static String[]splitContentTypeListString(String contentTypeListString)
 
- 
- 
- 
Field Detail- 
HTML_CONTENT_TYPEpublic static final String HTML_CONTENT_TYPE - See Also:
- Constant Field Values
 
 - 
TEXT_ANY_CONTENT_TYPEpublic static final String TEXT_ANY_CONTENT_TYPE - See Also:
- Constant Field Values
 
 - 
ANY_CONTENT_TYPEpublic static final String ANY_CONTENT_TYPE - See Also:
- Constant Field Values
 
 - 
HTML_ALLOWED_CONTENT_TYPESpublic static final String[] HTML_ALLOWED_CONTENT_TYPES 
 - 
XHTML_CONTENT_TYPEpublic static final String XHTML_CONTENT_TYPE - See Also:
- Constant Field Values
 
 - 
APPLICATION_XML_CONTENT_TYPEpublic static final String APPLICATION_XML_CONTENT_TYPE - See Also:
- Constant Field Values
 
 - 
TEXT_XML_CONTENT_TYPEpublic static final String TEXT_XML_CONTENT_TYPE - See Also:
- Constant Field Values
 
 - 
XHTML_ALLOWED_CONTENT_TYPESpublic static final String[] XHTML_ALLOWED_CONTENT_TYPES 
 - 
AJAX_XHTML_ALLOWED_CONTENT_TYPESpublic static final String[] AJAX_XHTML_ALLOWED_CONTENT_TYPES 
 - 
DEFAULT_CHAR_ENCODINGpublic static final String DEFAULT_CHAR_ENCODING - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
containsContentTypepublic static boolean containsContentType(String contentType, String[] allowedContentTypes) Indicate if the passes content type match one of the options passed.
 - 
chooseWriterContentTypepublic static String chooseWriterContentType(String contentTypeListString, String[] htmlContentTypes, String[] xhtmlContentTypes) 
 - 
splitContentTypeListStringpublic static String[] splitContentTypeListString(String contentTypeListString) 
 - 
getContentTypeFromAcceptHeaderpublic static String getContentTypeFromAcceptHeader(FacesContext context) 
 - 
getSupportedContentTypespublic static String[] getSupportedContentTypes() 
 - 
isXHTMLContentTypepublic static boolean isXHTMLContentType(String contentType) 
 
- 
 
-