@@ -85,7 +85,7 @@ public class AsyncHttpClientConfig {
85
85
protected int idleConnectionInPoolTimeoutInMs ;
86
86
protected int idleConnectionTimeoutInMs ;
87
87
protected int requestTimeoutInMs ;
88
- protected boolean redirectEnabled ;
88
+ protected boolean followRedirect ;
89
89
protected int maxRedirects ;
90
90
protected boolean compressionEnabled ;
91
91
protected String userAgent ;
@@ -101,7 +101,7 @@ public class AsyncHttpClientConfig {
101
101
protected int requestCompressionLevel ;
102
102
protected int maxRequestRetry ;
103
103
protected boolean allowSslConnectionPool ;
104
- protected boolean useRawUrl ;
104
+ protected boolean disableUrlEncodingForBoundRequests ;
105
105
protected boolean removeQueryParamOnRedirect ;
106
106
protected HostnameVerifier hostnameVerifier ;
107
107
protected int ioThreadMultiplier ;
@@ -125,7 +125,7 @@ private AsyncHttpClientConfig(int maxTotalConnections, //
125
125
int idleConnectionTimeoutInMs , //
126
126
int requestTimeoutInMs , //
127
127
int connectionMaxLifeTimeInMs , //
128
- boolean redirectEnabled , //
128
+ boolean followRedirect , //
129
129
int maxRedirects , //
130
130
boolean compressionEnabled , //
131
131
String userAgent , //
@@ -143,7 +143,7 @@ private AsyncHttpClientConfig(int maxTotalConnections, //
143
143
int requestCompressionLevel , //
144
144
int maxRequestRetry , //
145
145
boolean allowSslConnectionCaching , //
146
- boolean useRawUrl , //
146
+ boolean disableUrlEncodingForBoundRequests , //
147
147
boolean removeQueryParamOnRedirect , //
148
148
HostnameVerifier hostnameVerifier , //
149
149
int ioThreadMultiplier , //
@@ -163,7 +163,7 @@ private AsyncHttpClientConfig(int maxTotalConnections, //
163
163
this .idleConnectionTimeoutInMs = idleConnectionTimeoutInMs ;
164
164
this .requestTimeoutInMs = requestTimeoutInMs ;
165
165
this .maxConnectionLifeTimeInMs = connectionMaxLifeTimeInMs ;
166
- this .redirectEnabled = redirectEnabled ;
166
+ this .followRedirect = followRedirect ;
167
167
this .maxRedirects = maxRedirects ;
168
168
this .compressionEnabled = compressionEnabled ;
169
169
this .userAgent = userAgent ;
@@ -184,7 +184,7 @@ private AsyncHttpClientConfig(int maxTotalConnections, //
184
184
this .useRelativeURIsWithSSLProxies = useRelativeURIsWithSSLProxies ;
185
185
this .applicationThreadPool = applicationThreadPool ;
186
186
this .proxyServerSelector = proxyServerSelector ;
187
- this .useRawUrl = useRawUrl ;
187
+ this .disableUrlEncodingForBoundRequests = disableUrlEncodingForBoundRequests ;
188
188
this .spdyEnabled = spdyEnabled ;
189
189
this .spdyInitialWindowSize = spdyInitialWindowSize ;
190
190
this .spdyMaxConcurrentStreams = spdyMaxConcurrentStreams ;
@@ -262,8 +262,8 @@ public int getRequestTimeoutInMs() {
262
262
*
263
263
* @return true if enabled.
264
264
*/
265
- public boolean isRedirectEnabled () {
266
- return redirectEnabled ;
265
+ public boolean isFollowRedirect () {
266
+ return followRedirect ;
267
267
}
268
268
269
269
/**
@@ -422,10 +422,10 @@ public boolean isSslConnectionPoolEnabled() {
422
422
}
423
423
424
424
/**
425
- * @return the useRawUrl
425
+ * @return the disableUrlEncodingForBoundRequests
426
426
*/
427
- public boolean isUseRawUrl () {
428
- return useRawUrl ;
427
+ public boolean isDisableUrlEncodingForBoundRequests () {
428
+ return disableUrlEncodingForBoundRequests ;
429
429
}
430
430
431
431
/**
@@ -552,7 +552,7 @@ public static class Builder {
552
552
private int idleConnectionTimeoutInMs = defaultIdleConnectionTimeoutInMs ();
553
553
private int requestTimeoutInMs = defaultRequestTimeoutInMs ();
554
554
private int maxConnectionLifeTimeInMs = defaultMaxConnectionLifeTimeInMs ();
555
- private boolean redirectEnabled = defaultRedirectEnabled ();
555
+ private boolean followRedirect = defaultFollowRedirect ();
556
556
private int maxRedirects = defaultMaxRedirects ();
557
557
private boolean compressionEnabled = defaultCompressionEnabled ();
558
558
private String userAgent = defaultUserAgent ();
@@ -564,7 +564,7 @@ public static class Builder {
564
564
private int maxRequestRetry = defaultMaxRequestRetry ();
565
565
private int ioThreadMultiplier = defaultIoThreadMultiplier ();
566
566
private boolean allowSslConnectionPool = defaultAllowSslConnectionPool ();
567
- private boolean useRawUrl = defaultUseRawUrl ();
567
+ private boolean disableUrlEncodingForBoundRequests = defaultDisableUrlEncodingForBoundRequests ();
568
568
private boolean removeQueryParamOnRedirect = defaultRemoveQueryParamOnRedirect ();
569
569
private boolean strict302Handling = defaultStrict302Handling ();
570
570
private HostnameVerifier hostnameVerifier = defaultHostnameVerifier ();
@@ -676,8 +676,8 @@ public Builder setRequestTimeoutInMs(int requestTimeoutInMs) {
676
676
* @param redirectEnabled true if enabled.
677
677
* @return a {@link Builder}
678
678
*/
679
- public Builder setFollowRedirects (boolean redirectEnabled ) {
680
- this .redirectEnabled = redirectEnabled ;
679
+ public Builder setFollowRedirects (boolean followRedirect ) {
680
+ this .followRedirect = followRedirect ;
681
681
return this ;
682
682
}
683
683
@@ -933,11 +933,11 @@ public Builder setAllowSslConnectionPool(boolean allowSslConnectionPool) {
933
933
* Allows use unescaped URLs in requests
934
934
* useful for retrieving data from broken sites
935
935
*
936
- * @param useRawUrl
936
+ * @param disableUrlEncodingForBoundRequests
937
937
* @return this
938
938
*/
939
- public Builder setUseRawUrl (boolean useRawUrl ) {
940
- this .useRawUrl = useRawUrl ;
939
+ public Builder setDisableUrlEncodingForBoundRequests (boolean disableUrlEncodingForBoundRequests ) {
940
+ this .disableUrlEncodingForBoundRequests = disableUrlEncodingForBoundRequests ;
941
941
return this ;
942
942
}
943
943
@@ -1111,7 +1111,7 @@ public Builder(AsyncHttpClientConfig prototype) {
1111
1111
requestTimeoutInMs = prototype .getRequestTimeoutInMs ();
1112
1112
sslContext = prototype .getSSLContext ();
1113
1113
userAgent = prototype .getUserAgent ();
1114
- redirectEnabled = prototype .isRedirectEnabled ();
1114
+ followRedirect = prototype .isFollowRedirect ();
1115
1115
compressionEnabled = prototype .isCompressionEnabled ();
1116
1116
applicationThreadPool = prototype .executorService ();
1117
1117
@@ -1124,7 +1124,7 @@ public Builder(AsyncHttpClientConfig prototype) {
1124
1124
ioExceptionFilters .addAll (prototype .getIOExceptionFilters ());
1125
1125
1126
1126
requestCompressionLevel = prototype .getRequestCompressionLevel ();
1127
- useRawUrl = prototype .isUseRawUrl ();
1127
+ disableUrlEncodingForBoundRequests = prototype .isDisableUrlEncodingForBoundRequests ();
1128
1128
ioThreadMultiplier = prototype .getIoThreadMultiplier ();
1129
1129
maxRequestRetry = prototype .getMaxRequestRetry ();
1130
1130
allowSslConnectionPool = prototype .getAllowPoolingConnection ();
@@ -1172,7 +1172,7 @@ public Thread newThread(Runnable r) {
1172
1172
idleConnectionTimeoutInMs , //
1173
1173
requestTimeoutInMs , //
1174
1174
maxConnectionLifeTimeInMs , //
1175
- redirectEnabled , //
1175
+ followRedirect , //
1176
1176
maxRedirects , //
1177
1177
compressionEnabled , //
1178
1178
userAgent , //
@@ -1190,7 +1190,7 @@ public Thread newThread(Runnable r) {
1190
1190
requestCompressionLevel , //
1191
1191
maxRequestRetry , //
1192
1192
allowSslConnectionPool , //
1193
- useRawUrl , //
1193
+ disableUrlEncodingForBoundRequests , //
1194
1194
removeQueryParamOnRedirect , //
1195
1195
hostnameVerifier , //
1196
1196
ioThreadMultiplier , //
0 commit comments