File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
library/src/com/lidroid/xutils/http Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public void setHttpRedirectHandler(HttpRedirectHandler httpRedirectHandler) {
54
54
private String requestMethod ;
55
55
private HttpRequestBase request ;
56
56
private boolean isUploading = true ;
57
- private final RequestCallBack <T > callback ;
57
+ private RequestCallBack <T > callback ;
58
58
59
59
private int retriedTimes = 0 ;
60
60
private String fileSavePath = null ;
@@ -82,6 +82,14 @@ public void setExpiry(long expiry) {
82
82
this .expiry = expiry ;
83
83
}
84
84
85
+ public void setRequestCallBack (RequestCallBack <T > callback ) {
86
+ this .callback = callback ;
87
+ }
88
+
89
+ public RequestCallBack <T > getRequestCallBack () {
90
+ return this .callback ;
91
+ }
92
+
85
93
// 执行请求
86
94
@ SuppressWarnings ("unchecked" )
87
95
private ResponseInfo <T > sendRequest (HttpRequestBase request ) throws HttpException {
@@ -282,10 +290,6 @@ public boolean isStopped() {
282
290
return this .state == State .STOPPED ;
283
291
}
284
292
285
- public RequestCallBack <T > getRequestCallBack () {
286
- return this .callback ;
287
- }
288
-
289
293
private long lastUpdateTime ;
290
294
291
295
@ Override
You can’t perform that action at this time.
0 commit comments