From ed79acbef02c02fb3c05f191a436b39a2fceef4f Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Fri, 27 Feb 2015 20:13:38 +0000 Subject: [PATCH] adding default contructor to RequestConfig to being able to inject it with new CDI specification Contributed by Nykolas Lima git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1662807 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/client/config/RequestConfig.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java b/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java index 2ab7dd44b..58dcb55d4 100644 --- a/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java +++ b/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java @@ -60,6 +60,13 @@ public class RequestConfig implements Cloneable { private final int socketTimeout; private final boolean decompressionEnabled; + /** + * Intended for CDI compatibility + */ + protected RequestConfig() { + this(false, null, null, false, null, false, false, false, 0, false, null, null, 0, 0, 0, false); + } + RequestConfig( final boolean expectContinueEnabled, final HttpHost proxy,