Class ContentTypeUtils

java.lang.Object
org.apache.myfaces.renderkit.ContentTypeUtils

public class ContentTypeUtils extends Object
  • Field Details

  • Constructor Details

    • ContentTypeUtils

      public ContentTypeUtils()
  • Method Details

    • 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)