Package com.rometools.fetcher.impl
Class ResponseHandler
- java.lang.Object
-
- com.rometools.fetcher.impl.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 *
-
-
Field Summary
Fields Modifier and Type Field Description static StringdefaultCharacterEncodingDeprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringgetCharacterEncoding(String contentTypeHeader)Deprecated.Gets the character encoding of a response.static StringgetCharacterEncoding(URLConnection connection)Deprecated.
-
-
-
Field Detail
-
defaultCharacterEncoding
public static final String defaultCharacterEncoding
Deprecated.- See Also:
- Constant Field Values
-
-
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
-
-