@@ -110,7 +110,7 @@ public void setReadTimeout(int readTimeoutValue) {
110110 * @param maxRedirects Max redirects that a request can take
111111 */
112112 public void setMaxRedirects (int maxRedirects ) {
113- this .maxRedirects = maxRedirects ;
113+ DefaultConnectionConfig .maxRedirects = maxRedirects ;
114114 }
115115
116116 /**
@@ -128,7 +128,7 @@ public int getMaxRedirects() {
128128 * @param shouldRedirect Callback called before doing a redirect
129129 */
130130 public void setShouldRedirect (IShouldRedirect shouldRedirect ) {
131- this .shouldRedirect = shouldRedirect ;
131+ DefaultConnectionConfig .shouldRedirect = shouldRedirect ;
132132 }
133133
134134 /**
@@ -146,7 +146,7 @@ public IShouldRedirect getShouldRedirect() {
146146 * @param shouldretry The callback called before retry
147147 */
148148 public void setShouldRetry (IShouldRetry shouldretry ) {
149- this .shouldRetry = shouldretry ;
149+ DefaultConnectionConfig .shouldRetry = shouldretry ;
150150 }
151151
152152 /**
@@ -164,7 +164,7 @@ public IShouldRetry getShouldRetry() {
164164 * @param maxRetries Max retries for a request
165165 */
166166 public void setMaxRetries (int maxRetries ) {
167- this .maxRetries = maxRetries ;
167+ DefaultConnectionConfig .maxRetries = maxRetries ;
168168 }
169169
170170 /**
@@ -182,7 +182,7 @@ public int getMaxRetries() {
182182 * @param delay Delay in seconds between retries
183183 */
184184 public void setDelay (long delay ) {
185- this .delay = delay ;
185+ DefaultConnectionConfig .delay = delay ;
186186 }
187187
188188 /**
0 commit comments