Skip to content

Commit 2767fb8

Browse files
SDK regenerated by CI server [ci skip]
1 parent f2c76a8 commit 2767fb8

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ This repository contains Aspose.Words Cloud SDK for Java source code. This SDK a
1717

1818
- Added dependsOn and resultOf features for batch requests
1919
- Added query parameter 'displayIntermediateResults' for batch requests. If 'false', the last response in batch will be returned only. Default is 'true'
20+
- Added 'timeout' in seconds
21+
- Support encryption of 'CommonRequest.Password'. Automatic encryption of all passwords sent to the API server as request parameters.
2022

2123
## Enhancements in Version 21.11
2224

src/main/java/com/aspose/words/cloud/ApiClient.java

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,10 @@ public ApiClient() {
105105
json = new JSON();
106106

107107
// Set default User-Agent.
108-
setUserAgent("Swagger-Codegen/1.0.0/java");
109108
addDefaultHeader("x-aspose-client", "java sdk");
110109
addDefaultHeader("x-aspose-client-version", clientVersion);
111-
setConnectTimeout(5 * 60 * 1000);
112-
setReadTimeout(5 * 60 * 1000);
110+
setConnectTimeout(180);
111+
setReadTimeout(180);
113112
}
114113

115114

@@ -387,68 +386,68 @@ public ApiClient setTempFolderPath(String tempFolderPath) {
387386
}
388387

389388
/**
390-
* Get connection timeout (in milliseconds).
389+
* Get connection timeout (in seconds).
391390
*
392-
* @return Timeout in milliseconds
391+
* @return Timeout in seconds
393392
*/
394393
public int getConnectTimeout() {
395394
return httpClient.getConnectTimeout();
396395
}
397396

398397
/**
399-
* Sets the connect timeout (in milliseconds).
398+
* Sets the connect timeout (in seconds).
400399
* A value of 0 means no timeout, otherwise values must be between 1 and
401400
* {@link Integer#MAX_VALUE}.
402401
*
403-
* @param connectionTimeout connection timeout in milliseconds
402+
* @param connectionTimeout connection timeout in seconds
404403
* @return Api client
405404
*/
406405
public ApiClient setConnectTimeout(int connectionTimeout) {
407-
httpClient.setConnectTimeout(connectionTimeout, TimeUnit.MILLISECONDS);
406+
httpClient.setConnectTimeout(connectionTimeout, TimeUnit.SECONDS);
408407
return this;
409408
}
410409

411410
/**
412-
* Get read timeout (in milliseconds).
411+
* Get read timeout (in seconds).
413412
*
414-
* @return Timeout in milliseconds
413+
* @return Timeout in seconds
415414
*/
416415
public int getReadTimeout() {
417416
return httpClient.getReadTimeout();
418417
}
419418

420419
/**
421-
* Sets the read timeout (in milliseconds).
420+
* Sets the read timeout (in seconds).
422421
* A value of 0 means no timeout, otherwise values must be between 1 and
423422
* {@link Integer#MAX_VALUE}.
424423
*
425-
* @param readTimeout read timeout in milliseconds
424+
* @param readTimeout read timeout in seconds
426425
* @return Api client
427426
*/
428427
public ApiClient setReadTimeout(int readTimeout) {
429-
httpClient.setReadTimeout(readTimeout, TimeUnit.MILLISECONDS);
428+
httpClient.setReadTimeout(readTimeout, TimeUnit.SECONDS);
430429
return this;
431430
}
432431

433432
/**
434-
* Get write timeout (in milliseconds).
433+
* Get write timeout (in seconds).
435434
*
436-
* @return Timeout in milliseconds
435+
* @return Timeout in seconds
437436
*/
438437
public int getWriteTimeout() {
439438
return httpClient.getWriteTimeout();
440439
}
441440

442441
/**
443-
* Sets the write timeout (in milliseconds).
442+
* Sets the write timeout (in seconds).
444443
* A value of 0 means no timeout, otherwise values must be between 1 and
445444
* {@link Integer#MAX_VALUE}.
446445
*
447-
* @param writeTimeout connection timeout in milliseconds
446+
* @param writeTimeout connection timeout in seconds
448447
* @return Api client
449448
*/
450449
public ApiClient setWriteTimeout(int writeTimeout) {
451-
httpClient.setWriteTimeout(writeTimeout, TimeUnit.MILLISECONDS);
450+
httpClient.setWriteTimeout(writeTimeout, TimeUnit.SECONDS);
452451
return this;
453452
}
454453

0 commit comments

Comments
 (0)