@Override
	public <R> R sendRequest(HttpRequest request,
			ContentHandler<HttpResponse, R> handler) throws RedmineException {
		logger.debug(request.getRequestLine().toString());

		request.addHeader("Accept-Encoding", "gzip");
		final HttpClient httpclient = client;
		try {
			final HttpResponse httpResponse = httpclient
					.execute((HttpUriRequest) request);
			try {
				return handler.processContent(httpResponse);
			} finally {
				EntityUtils.consume(httpResponse.getEntity());

			}
		} catch (ClientProtocolException e1) {
			throw new RedmineFormatException(e1);
		} catch (IOException e1) {
			throw new RedmineTransportException("Cannot fetch data from "
					+ getMessageURI(request) + " : "
							+ e1.toString(), e1);
		}
	}
@ Override public < R > R sendRequest ( HttpRequest request , ContentHandler < HttpResponse , R > handler ) throws RedmineException { logger . debug ( request . getRequestLine ( ) . toString ( ) ) ; request . addHeader ( "Accept-Encoding" , "gzip" ) ; final HttpClient httpclient = client ; try { final HttpResponse httpResponse = httpclient . execute ( ( HttpUriRequest ) request ) ; try { return handler . processContent ( httpResponse ) ; } finally { EntityUtils . consume ( httpResponse . getEntity ( ) ) ; } } catch ( ClientProtocolException e1 ) { throw new RedmineFormatException ( e1 ) ; } catch ( IOException e1 ) { throw new RedmineTransportException ( "Cannot fetch data from " + getMessageURI ( request ) + " : " + e1 . toString ( ) , e1 ) ; } }
/*
(non-Javadoc)

@see
com.taskadapter.redmineapi.internal.comm.Communicator#sendRequest(org.apache.http
.HttpRequest)