Skip to content

Commit fd3421c

Browse files
author
joshua.yin
authored
Merge pull request #37 from JoshuaYin/master
2.4.2
2 parents fadd08a + e9a5239 commit fd3421c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+270
-197
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<dependency>
2626
<groupId>cn.ucloud.ufile</groupId>
2727
<artifactId>ufile-client-java</artifactId>
28-
<version>2.4.1</version>
28+
<version>2.4.2</version>
2929
</dependency>
3030
```
3131

@@ -36,7 +36,7 @@
3636
/*
3737
* your other dependencies
3838
*/
39-
implementation 'cn.ucloud.ufile:ufile-client-java:2.4.1'
39+
implementation 'cn.ucloud.ufile:ufile-client-java:2.4.2'
4040
}
4141
```
4242

ufile-sample-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>cn.ucloud.ufile</groupId>
2828
<artifactId>ufile-client-java</artifactId>
29-
<version>2.4.1</version>
29+
<version>2.4.2</version>
3030
</dependency>
3131
</dependencies>
3232

ufile-sample-java/src/main/java/cn/ucloud/ufile/sample/Constants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import cn.ucloud.ufile.UfileClient;
44
import cn.ucloud.ufile.auth.*;
55
import cn.ucloud.ufile.http.HttpClient;
6-
import cn.ucloud.ufile.http.interceptor.LogInterceptor;
76
import cn.ucloud.ufile.util.JLog;
87

98
import java.util.concurrent.Executors;

ufile-sample-java/src/main/java/cn/ucloud/ufile/sample/object/multi/MultiUploadSample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import cn.ucloud.ufile.api.object.policy.PutPolicyForCallback;
1010
import cn.ucloud.ufile.bean.MultiUploadResponse;
1111
import cn.ucloud.ufile.bean.base.BaseObjectResponseBean;
12-
import cn.ucloud.ufile.bean.base.BaseResponseBean;
1312
import cn.ucloud.ufile.exception.UfileClientException;
1413
import cn.ucloud.ufile.exception.UfileServerException;
1514
import cn.ucloud.ufile.http.OnProgressListener;

ufile/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>cn.ucloud.ufile</groupId>
88
<artifactId>ufile</artifactId>
99
<packaging>pom</packaging>
10-
<version>2.4.1</version>
10+
<version>2.4.2</version>
1111

1212
<modules>
1313
<module>ufile-core</module>
-19.6 KB
Binary file not shown.

ufile/ufile-client-java/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<parent>
77
<artifactId>ufile</artifactId>
88
<groupId>cn.ucloud.ufile</groupId>
9-
<version>2.4.1</version>
9+
<version>2.4.2</version>
1010
</parent>
1111

1212
<artifactId>ufile-client-java</artifactId>
13-
<version>2.4.1</version>
13+
<version>2.4.2</version>
1414

1515
<dependencies>
1616
<dependency>
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>cn.ucloud.ufile</groupId>
2828
<artifactId>ufile-core</artifactId>
29-
<version>2.4.1</version>
29+
<version>2.4.2</version>
3030
</dependency>
3131
</dependencies>
3232

ufile/ufile-client-java/src/main/java/cn/ucloud/ufile/UfileClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,6 @@ public synchronized static BucketApiBuilder bucket(BucketAuthorizer authorizer)
142142
* @return Object相关API构造器 {@link ObjectApiBuilder}
143143
*/
144144
public synchronized static ObjectApiBuilder object(ObjectAuthorizer authorizer, ObjectConfig config) {
145-
return new ObjectApiBuilder(createClient(), authorizer, config.host());
145+
return new ObjectApiBuilder(createClient(), authorizer, config);
146146
}
147147
}

ufile/ufile-client-java/src/main/java/cn/ucloud/ufile/api/object/AppendObjectApi.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ public class AppendObjectApi extends UfileObjectApi<AppendObjectResultBean> {
7474
/**
7575
* 构造方法
7676
*
77-
* @param authorizer Object授权器
78-
* @param host API域名
79-
* @param httpClient Http客户端
77+
* @param authorizer Object授权器
78+
* @param objectConfig ObjectConfig {@link ObjectConfig}
79+
* @param httpClient Http客户端
8080
*/
81-
protected AppendObjectApi(ObjectAuthorizer authorizer, String host, HttpClient httpClient) {
82-
super(authorizer, host, httpClient);
81+
protected AppendObjectApi(ObjectAuthorizer authorizer, ObjectConfig objectConfig, HttpClient httpClient) {
82+
super(authorizer, objectConfig, httpClient);
8383
progressConfig = ProgressConfig.callbackDefault();
8484
}
8585

ufile/ufile-client-java/src/main/java/cn/ucloud/ufile/api/object/CopyObjectApi.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ public class CopyObjectApi extends UfileObjectApi<CopyObjectResultBean> {
6565
/**
6666
* 构造方法
6767
*
68-
* @param authorizer Object授权器
69-
* @param host API域名
70-
* @param httpClient Http客户端
68+
* @param authorizer Object授权器
69+
* @param objectConfig ObjectConfig {@link ObjectConfig}
70+
* @param httpClient Http客户端
7171
*/
72-
protected CopyObjectApi(ObjectAuthorizer authorizer, String host, HttpClient httpClient) {
73-
super(authorizer, host, httpClient);
72+
protected CopyObjectApi(ObjectAuthorizer authorizer, ObjectConfig objectConfig, HttpClient httpClient) {
73+
super(authorizer, objectConfig, httpClient);
7474
}
7575

7676
/**

0 commit comments

Comments
 (0)