File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/main/java/com/ning/http Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package com .ning .http .client ;
17
17
18
+ import static com .ning .http .util .MiscUtil .getBoolean ;
19
+
18
20
import com .ning .http .client .date .TimeConverter ;
19
21
import com .ning .http .client .filter .IOExceptionFilter ;
20
22
import com .ning .http .client .filter .RequestFilter ;
@@ -539,7 +541,7 @@ public static class Builder {
539
541
private boolean useProxyProperties = Boolean .getBoolean (ASYNC_CLIENT + "useProxyProperties" );
540
542
private boolean useProxySelector = Boolean .getBoolean (ASYNC_CLIENT + "useProxySelector" );
541
543
private boolean allowPoolingConnection = true ;
542
- private boolean useRelativeURIsWithSSLProxies = Boolean . getBoolean (ASYNC_CLIENT + "useRelativeURIsWithSSLProxies" );
544
+ private boolean useRelativeURIsWithSSLProxies = getBoolean (ASYNC_CLIENT + "useRelativeURIsWithSSLProxies" , true );
543
545
private ExecutorService applicationThreadPool ;
544
546
private ProxyServerSelector proxyServerSelector = null ;
545
547
private SSLContext sslContext ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ private MiscUtil() {
23
23
public static boolean isNonEmpty (String string ) {
24
24
return string != null && string .length () != 0 ;
25
25
}
26
-
26
+
27
27
public static boolean isNonEmpty (Object [] array ) {
28
28
return array != null && array .length != 0 ;
29
29
}
@@ -39,4 +39,9 @@ public static boolean isNonEmpty(Collection<?> collection) {
39
39
public static boolean isNonEmpty (Map <?, ?> map ) {
40
40
return map != null && !map .isEmpty ();
41
41
}
42
+
43
+ public static boolean getBoolean (String systemPropName , boolean defaultValue ) {
44
+ String systemPropValue = System .getProperty (systemPropName );
45
+ return systemPropValue != null ? systemPropValue .equalsIgnoreCase ("true" ) : defaultValue ;
46
+ }
42
47
}
You can’t perform that action at this time.
0 commit comments