Class ContentTypeUtils


  • public class ContentTypeUtils
    extends Object
    • Constructor Detail

      • ContentTypeUtils

        public ContentTypeUtils()
    • Method Detail

      • containsContentType

        public static boolean containsContentType​(String contentType,
                                                  String[] allowedContentTypes)
        Indicate if the passes content type match one of the options passed.
      • chooseWriterContentType

        public static String chooseWriterContentType​(String contentTypeListString,
                                                     String[] htmlContentTypes,
                                                     String[] xhtmlContentTypes)
      • splitContentTypeListString

        public static String[] splitContentTypeListString​(String contentTypeListString)
      • getContentTypeFromAcceptHeader

        public static String getContentTypeFromAcceptHeader​(FacesContext context)
      • getSupportedContentTypes

        public static String[] getSupportedContentTypes()
      • isXHTMLContentType

        public static boolean isXHTMLContentType​(String contentType)