com.sun.syndication.fetcher.impl
Class ResponseHandler

java.lang.Object
  extended bycom.sun.syndication.fetcher.impl.ResponseHandler

public class ResponseHandler
extends java.lang.Object

Utility class to help deal with HTTP responses


Field Summary
static java.lang.String defaultCharacterEncoding
           
 
Constructor Summary
ResponseHandler()
           
 
Method Summary
static java.lang.String getCharacterEncoding(java.lang.String contentTypeHeader)
          Gets the character encoding of a response.
static java.lang.String getCharacterEncoding(java.net.URLConnection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultCharacterEncoding

public static final java.lang.String defaultCharacterEncoding
See Also:
Constant Field Values
Constructor Detail

ResponseHandler

public ResponseHandler()
Method Detail

getCharacterEncoding

public static java.lang.String getCharacterEncoding(java.net.URLConnection connection)

getCharacterEncoding

public static java.lang.String getCharacterEncoding(java.lang.String contentTypeHeader)

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


Copyright © 2004 Sun Microsystems. All Rights Reserved.