Code example for ResponseHandler

Methods: handleResponse

0
			if (handler == null) {
				throw new NullPointerException("ResponseHandler must not be null.");
			} 
			 
			final HttpResponse response = asResponse();
			return handler.handleResponse(response);
		} 
 
		/** 
		 * Executes this request and aborts immediately after execution using 
		 * the {@linkplain HttpUriRequest#abort() abort} method of this request. 
		 *  
		 * @throws IOException if an error occurs while execution 
		 */ 
		public void throwAwayResponse() throws IOException { 
			asResponse(); 
			request.abort();
		} 
 
		/** 
		 * Executes this request and consumes any available content on the