InternalHttpClient class to implement Configurable (per request of Spring folks)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1647755 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
978c67d3da
commit
1f3d34b6bd
|
@ -74,7 +74,7 @@ import org.apache.http.util.Args;
|
|||
*/
|
||||
@ThreadSafe
|
||||
@SuppressWarnings("deprecation")
|
||||
class InternalHttpClient extends CloseableHttpClient {
|
||||
class InternalHttpClient extends CloseableHttpClient implements Configurable {
|
||||
|
||||
private final Log log = LogFactory.getLog(getClass());
|
||||
|
||||
|
@ -187,6 +187,11 @@ class InternalHttpClient extends CloseableHttpClient {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public RequestConfig getConfig() {
|
||||
return this.defaultConfig;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
if (this.closeables != null) {
|
||||
|
|
Loading…
Reference in New Issue