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:
Oleg Kalnichevski 2014-12-24 09:44:05 +00:00
parent 978c67d3da
commit 1f3d34b6bd
1 changed files with 6 additions and 1 deletions

View File

@ -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) {