Fixed binary compatiblity breakage
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1417377 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9aea057953
commit
9b6aeffa80
|
@ -777,7 +777,7 @@ public abstract class AbstractHttpClient extends CloseableHttpClient {
|
|||
}
|
||||
|
||||
@Override
|
||||
public final CloseableHttpResponse execute(HttpHost target, HttpRequest request,
|
||||
protected final CloseableHttpResponse doExecute(HttpHost target, HttpRequest request,
|
||||
HttpContext context)
|
||||
throws IOException, ClientProtocolException {
|
||||
|
||||
|
|
|
@ -58,16 +58,23 @@ public abstract class CloseableHttpClient implements HttpClient, Closeable {
|
|||
|
||||
private final Log log = LogFactory.getLog(getClass());
|
||||
|
||||
public abstract CloseableHttpResponse execute(HttpHost target, HttpRequest request,
|
||||
protected abstract CloseableHttpResponse doExecute(HttpHost target, HttpRequest request,
|
||||
HttpContext context) throws IOException, ClientProtocolException;
|
||||
|
||||
public CloseableHttpResponse execute(
|
||||
final HttpHost target,
|
||||
final HttpRequest request,
|
||||
final HttpContext context) throws IOException, ClientProtocolException {
|
||||
return doExecute(target, request, context);
|
||||
}
|
||||
|
||||
public CloseableHttpResponse execute(
|
||||
final HttpUriRequest request,
|
||||
final HttpContext context) throws IOException, ClientProtocolException {
|
||||
if (request == null) {
|
||||
throw new IllegalArgumentException("Request must not be null.");
|
||||
}
|
||||
return execute(determineTarget(request), request, context);
|
||||
return doExecute(determineTarget(request), request, context);
|
||||
}
|
||||
|
||||
private static HttpHost determineTarget(HttpUriRequest request) throws ClientProtocolException {
|
||||
|
@ -94,7 +101,7 @@ public abstract class CloseableHttpClient implements HttpClient, Closeable {
|
|||
public CloseableHttpResponse execute(
|
||||
final HttpHost target,
|
||||
final HttpRequest request) throws IOException, ClientProtocolException {
|
||||
return execute(target, request, (HttpContext) null);
|
||||
return doExecute(target, request, (HttpContext) null);
|
||||
}
|
||||
|
||||
public <T> T execute(final HttpUriRequest request,
|
||||
|
|
|
@ -150,7 +150,7 @@ class InternalHttpClient extends CloseableHttpClient {
|
|||
}
|
||||
|
||||
@Override
|
||||
public CloseableHttpResponse execute(
|
||||
protected CloseableHttpResponse doExecute(
|
||||
final HttpHost target,
|
||||
final HttpRequest request,
|
||||
final HttpContext context) throws IOException, ClientProtocolException {
|
||||
|
|
Loading…
Reference in New Issue