Class ResponseHandler


  • @Deprecated
    public class ResponseHandler
    extends Object
    Deprecated.
    ROME Fetcher will be dropped in the next major version of ROME (version 2). For more information and some migration hints, please have a look at our detailed explanation.
    Utility class to help deal with HTTP responses *
    • Method Detail

      • getCharacterEncoding

        public static String getCharacterEncoding​(URLConnection connection)
        Deprecated.
      • getCharacterEncoding

        public static String getCharacterEncoding​(String contentTypeHeader)
        Deprecated.

        Gets the character encoding of a response. (Note that this is different to the content-encoding)

        Parameters:
        contentTypeHeader - the value of the content-type HTTP header eg: text/html; charset=ISO-8859-4
        Returns:
        the character encoding, eg: ISO-8859-4