Class RawResponseBase

    • Field Detail

      • CHARSET_PATTERN

        private static final java.util.regex.Pattern CHARSET_PATTERN
      • config

        protected Config config
    • Method Detail

      • getCharSet

        protected java.lang.String getCharSet()
      • getCharsetFromContentType

        private java.lang.String getCharsetFromContentType​(java.lang.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.
      • getConfig

        public Config getConfig()
        Description copied from interface: RawResponse
        Returns the current config for this request/response
        Specified by:
        getConfig in interface RawResponse
        Returns:
        the config