Skip to content

Commit

Permalink
uri去掉final修饰,来满足一些特殊的修改uri的需求。
Browse files Browse the repository at this point in the history
  • Loading branch information
iFinVer committed Oct 19, 2016
1 parent 475ad05 commit d36b0e3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion xutils/src/main/java/org/xutils/http/RequestParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class RequestParams extends BaseParams {

// 注解及其扩展参数
private HttpRequest httpRequest;
private final String uri;
private String uri;
private final String[] signs;
private final String[] cacheKeys;
private ParamsBuilder builder;
Expand Down Expand Up @@ -116,6 +116,14 @@ public String getUri() {
return TextUtils.isEmpty(buildUri) ? uri : buildUri;
}

public void setUri(String uri){
if(TextUtils.isEmpty(buildUri)){
this.uri = uri;
}else {
this.buildUri = uri;
}
}

public String getCacheKey() {
if (TextUtils.isEmpty(buildCacheKey) && builder != null) {
HttpRequest httpRequest = this.getHttpRequest();
Expand Down

0 comments on commit d36b0e3

Please sign in to comment.