Class ContentTypeUtil


  • public final class ContentTypeUtil
    extends Object
    Author:
    eric.wittmann@gmail.com
    • Constructor Detail

      • ContentTypeUtil

        public ContentTypeUtil()
    • Method Detail

      • isApplicationJson

        public static boolean isApplicationJson​(String ct)
        Returns true if the Content-Type of the inbound request is "application/json".
        Parameters:
        ct - content type
      • isApplicationYaml

        public static boolean isApplicationYaml​(String ct)
        Returns true if the Content-Type of the inbound request is "application/x-yaml".
        Parameters:
        ct - content type