/** * Subclasses should override this method to determine whether the HTTP response is retryable. * * @param response The HTTP response object. May be <jk>null</jk> if a connection could not be made. * @return <jk>true</jk> if the specified response code is retryable. */ protected boolean onResponse(HttpResponse response) { return onCode(response == null || response.getStatusLine() == null ? -1 : response.getStatusLine().getStatusCode()); }
EntityUtils.consumeQuietly(response.getEntity()); if (! retryOn.onResponse(response)) retries = 0; if (retries > 0) {
EntityUtils.consumeQuietly(response.getEntity()); if (! retryOn.onResponse(response)) retries = 0; if (retries > 0) {
/** * Subclasses should override this method to determine whether the HTTP response is retryable. * * @param response The HTTP response object. May be <jk>null</jk> if a connection could not be made. * @return <jk>true</jk> if the specified response code is retryable. */ protected boolean onResponse(HttpResponse response) { return onCode(response == null || response.getStatusLine() == null ? -1 : response.getStatusLine().getStatusCode()); }
EntityUtils.consumeQuietly(response.getEntity()); if (! retryOn.onResponse(response)) retries = 0; if (retries > 0) {
/** * Subclasses should override this method to determine whether the HTTP response is retryable. * * @param response The HTTP response object. May be <jk>null</jk> if a connection could not be made. * @return <jk>true</jk> if the specified response code is retryable. */ protected boolean onResponse(HttpResponse response) { return onCode(response == null || response.getStatusLine() == null ? -1 : response.getStatusLine().getStatusCode()); }