Code example for Header

Methods: getValue

0
	 */ 
	private static boolean isSupportGzip(HttpResponse response) {
		Header contentEncoding = response.getFirstHeader("Content-Encoding");
 
		return contentEncoding != null
				&& contentEncoding.getValue().equalsIgnoreCase("gzip");
	} 
 
	/** 
	 * deal with the response 
	 *  
	 * @param response 
	 * @param clazz 
	 * @return 
	 * @throws IllegalStateException 
	 * @throws ParseException 
	 * @throws IOException 
	 */ 
	private static String processResponse(HttpResponse response)
			throws HttpResponseException, IllegalStateException, IOException { 
		int statusCode = response.getStatusLine().getStatusCode();