Skip to content

Commit 3198783

Browse files
committed
Updated sources
1 parent e28cb6c commit 3198783

File tree

15 files changed

+1139
-171
lines changed

15 files changed

+1139
-171
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Add following repository and dependency to your project's POM
3737
<dependency>
3838
<groupId>com.groupdocs</groupId>
3939
<artifactId>groupdocs-conversion-cloud</artifactId>
40-
<version>19.4</version>
40+
<version>19.5</version>
4141
<scope>compile</scope>
4242
</dependency>
4343
```
@@ -50,7 +50,7 @@ At first generate the JAR by executing:
5050

5151
Then manually install the following JARs:
5252

53-
* target/groupdocs-conversion-cloud-19.4.jar
53+
* target/groupdocs-conversion-cloud-19.5.jar
5454
* target/lib/*.jar
5555

5656
## Getting Started
@@ -61,7 +61,7 @@ Please follow the [installation](#installation) instruction and execute the foll
6161
import com.groupdocs.cloud.conversion.client.*;
6262
import com.groupdocs.cloud.conversion.model.*;
6363
import com.groupdocs.cloud.conversion.model.requests.*;
64-
import com.groupdocs.cloud.conversion.api.ConversionApi;
64+
import com.groupdocs.cloud.conversion.api.InfoApi;
6565

6666
import java.util.*;
6767

@@ -74,11 +74,11 @@ public class ApiExample {
7474

7575
Configuration configuration = new Configuration(appSid, appKey);
7676

77-
ConversionApi conversionApi = new ConversionApi(configuration);
77+
InfoApi api = new InfoApi(configuration);
7878

7979
try {
8080
GetSupportedCibversionTypesRequest request = new GetSupportedConversionTypesRequest();
81-
List<SupportedFormat> response = conversionApi.getSupportedConversionTypes(request);
81+
List<SupportedFormat> response = api.getSupportedConversionTypes(request);
8282

8383
for (SupportedFormat format : response) {
8484
System.out.println(format.getSourceFormat());

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>groupdocs-conversion-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>groupdocs-conversion-cloud</name>
8-
<version>19.4</version>
8+
<version>19.5</version>
99
<url>https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java</url>
1010
<description>Java library for communicating with the GroupDocs.Conversion Cloud API</description>
1111
<scm>

src/main/java/com/groupdocs/cloud/conversion/api/ConversionApi.java renamed to src/main/java/com/groupdocs/cloud/conversion/api/ConvertApi.java

Lines changed: 6 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
3-
* <copyright company="Aspose Pty Ltd" file="ConversionApi.java">
3+
* <copyright company="Aspose Pty Ltd" file="ConvertApi.java">
44
* Copyright (c) 2003-2018 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
@@ -40,23 +40,23 @@
4040
import com.groupdocs.cloud.conversion.model.*;
4141
import com.groupdocs.cloud.conversion.model.requests.*;
4242

43-
public class ConversionApi {
43+
public class ConvertApi {
4444
private ApiClient apiClient;
4545

4646
/**
47-
* Initializes new instance of ConversionApi
47+
* Initializes new instance of ConvertApi
4848
* @param appSid Application identifier (App SID)
4949
* @param appKey Application private key (App Key)
5050
*/
51-
public ConversionApi(String appSid, String appKey) {
51+
public ConvertApi(String appSid, String appKey) {
5252
this(new Configuration(appSid, appKey));
5353
}
5454

5555
/**
56-
* Initializes new instance of ConversionApi
56+
* Initializes new instance of ConvertApi
5757
* @param configuration Configuration The configuration
5858
*/
59-
public ConversionApi(Configuration configuration) {
59+
public ConvertApi(Configuration configuration) {
6060
this.apiClient = new ApiClient(configuration);
6161
}
6262

@@ -322,129 +322,5 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
322322
return call;
323323
}
324324

325-
/**
326-
* Build call for getSupportedConversionTypes
327-
* @param request The request model
328-
* @param progressListener Progress listener
329-
* @param progressRequestListener Progress request listener
330-
* @return Call to execute
331-
* @throws ApiException If fail to serialize the request body object
332-
*/
333-
public com.squareup.okhttp.Call getSupportedConversionTypesCall(GetSupportedConversionTypesRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
334-
Object localVarPostBody = null;
335-
336-
// create path and map variables
337-
String localVarPath = "/conversion/formats";
338-
339-
List<Pair> localVarQueryParams = new ArrayList<Pair>();
340-
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
341-
if (request.getFilePath() != null)
342-
localVarQueryParams.addAll(apiClient.parameterToPair("filePath", request.getFilePath()));
343-
if (request.getStorageName() != null)
344-
localVarQueryParams.addAll(apiClient.parameterToPair("storageName", request.getStorageName()));
345-
if (request.getformat() != null)
346-
localVarQueryParams.addAll(apiClient.parameterToPair("format", request.getformat()));
347-
348-
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
349-
350-
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
351-
352-
final String[] localVarAccepts = {
353-
"application/json"
354-
};
355-
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
356-
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
357-
358-
final String[] localVarContentTypes = {
359-
"application/json"
360-
};
361-
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
362-
localVarHeaderParams.put("Content-Type", localVarContentType);
363-
364-
if(progressListener != null) {
365-
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
366-
@Override
367-
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
368-
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
369-
return originalResponse.newBuilder()
370-
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
371-
.build();
372-
}
373-
});
374-
}
375-
376-
String[] localVarAuthNames = new String[] { "JWT" };
377-
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
378-
}
379-
380-
@SuppressWarnings("rawtypes")
381-
private com.squareup.okhttp.Call getSupportedConversionTypesValidateBeforeCall(GetSupportedConversionTypesRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
382-
383-
384-
com.squareup.okhttp.Call call = getSupportedConversionTypesCall(request, progressListener, progressRequestListener);
385-
return call;
386-
387-
}
388-
389-
/**
390-
* Returns all supported conversion types
391-
*
392-
* @param request The request model
393-
* @return List&lt;SupportedFormat&gt;
394-
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
395-
*/
396-
public List<SupportedFormat> getSupportedConversionTypes(GetSupportedConversionTypesRequest request) throws ApiException {
397-
ApiResponse<List<SupportedFormat>> resp = getSupportedConversionTypesWithHttpInfo(request);
398-
return resp.getData();
399-
}
400-
401-
/**
402-
* Returns all supported conversion types
403-
*
404-
* @param request The request model
405-
* @return ApiResponse&lt;List&lt;SupportedFormat&gt;&gt;
406-
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
407-
*/
408-
public ApiResponse<List<SupportedFormat>> getSupportedConversionTypesWithHttpInfo(GetSupportedConversionTypesRequest request) throws ApiException {
409-
com.squareup.okhttp.Call call = getSupportedConversionTypesValidateBeforeCall(request, null, null);
410-
Type localVarReturnType = new TypeToken<List<SupportedFormat>>(){}.getType();
411-
return apiClient.execute(call, localVarReturnType);
412-
}
413-
414-
/**
415-
* Returns all supported conversion types (asynchronously)
416-
*
417-
* @param request The request model
418-
* @param callback The callback to be executed when the API call finishes
419-
* @return The request call
420-
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
421-
*/
422-
public com.squareup.okhttp.Call getSupportedConversionTypesAsync(GetSupportedConversionTypesRequest request, final ApiCallback<List<SupportedFormat>> callback) throws ApiException {
423-
424-
ProgressResponseBody.ProgressListener progressListener = null;
425-
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
426-
427-
if (callback != null) {
428-
progressListener = new ProgressResponseBody.ProgressListener() {
429-
@Override
430-
public void update(long bytesRead, long contentLength, boolean done) {
431-
callback.onDownloadProgress(bytesRead, contentLength, done);
432-
}
433-
};
434-
435-
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
436-
@Override
437-
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
438-
callback.onUploadProgress(bytesWritten, contentLength, done);
439-
}
440-
};
441-
}
442-
443-
com.squareup.okhttp.Call call = getSupportedConversionTypesValidateBeforeCall(request, progressListener, progressRequestListener);
444-
Type localVarReturnType = new TypeToken<List<SupportedFormat>>(){}.getType();
445-
apiClient.executeAsync(call, localVarReturnType, callback);
446-
return call;
447-
}
448-
449325
}
450326

src/main/java/com/groupdocs/cloud/conversion/api/FileApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
647647
}
648648

649649
String[] localVarAuthNames = new String[] { "JWT" };
650-
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
650+
return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
651651
}
652652

653653
@SuppressWarnings("rawtypes")

src/main/java/com/groupdocs/cloud/conversion/api/FolderApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
258258
}
259259

260260
String[] localVarAuthNames = new String[] { "JWT" };
261-
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
261+
return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
262262
}
263263

264264
@SuppressWarnings("rawtypes")

0 commit comments

Comments
 (0)