Class ResponseUtils


  • public class ResponseUtils
    extends Object
    • Constructor Detail

      • ResponseUtils

        public ResponseUtils()
    • Method Detail

      • getCharsetFromContentType

        public static String getCharsetFromContentType​(String contentType)
        Parse out a charset from a content type header.
        Parameters:
        contentType - e.g. "text/html; charset=EUC-JP"
        Returns:
        "EUC-JP", or null if not found. Charset is trimmed and uppercased.
      • isGzipped

        public static boolean isGzipped​(org.apache.http.Header contentEncoding)