Code example for AbstractHttpClient

Methods: execute

0
            } 
        } 
    } 
 
    private void makeRequest() throws IOException { 
        HttpResponse response = client.execute(request, context);
        if(responseHandler != null) {
            responseHandler.sendResponseMessage(response);
        } 
    } 
 
    private void makeRequestWithRetries() throws ConnectException { 
        // This is an additional layer of retry logic lifted from droid-fu 
        // See: https://github.com/kaeppler/droid-fu/blob/master/src/main/java/com/github/droidfu/http/BetterHttpRequestBase.java 
        boolean retry = true;
        IOException cause = null;
        HttpRequestRetryHandler retryHandler = client.getHttpRequestRetryHandler();
        while (retry) {
            try { 
                makeRequest(); 
                return;