class AbstractHttpClientDecorator implements HttpClient {

    protected HttpHost getHttpHost(HttpUriRequest req) {
        URI uri = req.getURI();
        String scheme = uri.getScheme();
        if ("HTTPS".equalsIgnoreCase(scheme)) {
            return new HttpHost(uri.getScheme() + "://" + uri.getAuthority());
        } else {
            return new HttpHost(uri.getAuthority());
        }
    }

    public  AbstractHttpClientDecorator(HttpClient backend);

}