Example usage for com.squareup.okhttp Response newBuilder

List of usage examples for com.squareup.okhttp Response newBuilder

Introduction

In this page you can find the example usage for com.squareup.okhttp Response newBuilder.

Prototype

public Builder newBuilder() 

Source Link

Usage

From source file:com.oracle.bdcs.bdm.client.api.FileSystemProviders.java

License:Apache License

private com.squareup.okhttp.Call unregisterProviderCall(String providerName, String tenantName,
        final ProgressResponseBody.ProgressListener progressListener,
        final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    Object localVarPostBody = null;

    // verify the required parameter 'providerName' is set
    if (providerName == null) {
        throw new ApiException(
                "Missing the required parameter 'providerName' when calling unregisterProvider(Async)");
    }/*w ww  . j  a  v  a2s  . co  m*/

    // verify the required parameter 'tenantName' is set
    if (tenantName == null) {
        throw new ApiException(
                "Missing the required parameter 'tenantName' when calling unregisterProvider(Async)");
    }

    // create path and map variables
    String localVarPath = "/v1.0/tenants/{tenantName}/fsProviders/{providerName}"
            .replaceAll("\\{format\\}", "json")
            .replaceAll("\\{" + "providerName" + "\\}", apiClient.escapeString(providerName.toString()))
            .replaceAll("\\{" + "tenantName" + "\\}", apiClient.escapeString(tenantName.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();

    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    final String[] localVarAccepts = {

    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null)
        localVarHeaderParams.put("Accept", localVarAccept);

    final String[] localVarContentTypes = {

    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    if (progressListener != null) {
        apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
            @Override
            public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain)
                    throws IOException {
                com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
                return originalResponse.newBuilder()
                        .body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();
            }
        });
    }

    String[] localVarAuthNames = new String[] {};
    return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
            localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}

From source file:com.oracle.bdcs.bdm.client.api.FileSystemProviders.java

License:Apache License

private com.squareup.okhttp.Call updateProviderCall(String providerName, FileSystemProvider body,
        String tenantName, final ProgressResponseBody.ProgressListener progressListener,
        final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    Object localVarPostBody = body;

    // verify the required parameter 'providerName' is set
    if (providerName == null) {
        throw new ApiException(
                "Missing the required parameter 'providerName' when calling updateProvider(Async)");
    }/*from ww w.  j a v a2 s  .c o m*/

    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling updateProvider(Async)");
    }

    // verify the required parameter 'tenantName' is set
    if (tenantName == null) {
        throw new ApiException(
                "Missing the required parameter 'tenantName' when calling updateProvider(Async)");
    }

    // create path and map variables
    String localVarPath = "/v1.0/tenants/{tenantName}/fsProviders/{providerName}"
            .replaceAll("\\{format\\}", "json")
            .replaceAll("\\{" + "providerName" + "\\}", apiClient.escapeString(providerName.toString()))
            .replaceAll("\\{" + "tenantName" + "\\}", apiClient.escapeString(tenantName.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();

    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    final String[] localVarAccepts = {

    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null)
        localVarHeaderParams.put("Accept", localVarAccept);

    final String[] localVarContentTypes = {

    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    if (progressListener != null) {
        apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
            @Override
            public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain)
                    throws IOException {
                com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
                return originalResponse.newBuilder()
                        .body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();
            }
        });
    }

    String[] localVarAuthNames = new String[] {};
    return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams,
            localVarFormParams, localVarAuthNames, progressRequestListener);
}

From source file:com.oracle.bdcs.bdm.client.api.Jobs.java

License:Apache License

private com.squareup.okhttp.Call abortJobCall(String jobUuid, JobOperation body, String tenantName,
        final ProgressResponseBody.ProgressListener progressListener,
        final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    Object localVarPostBody = body;

    // verify the required parameter 'jobUuid' is set
    if (jobUuid == null) {
        throw new ApiException("Missing the required parameter 'jobUuid' when calling abortJob(Async)");
    }/*from   w w w. j  ava 2 s  . c  o m*/

    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling abortJob(Async)");
    }

    // verify the required parameter 'tenantName' is set
    if (tenantName == null) {
        throw new ApiException("Missing the required parameter 'tenantName' when calling abortJob(Async)");
    }

    // create path and map variables
    String localVarPath = "/v1.0/tenants/{tenantName}/jobs/{jobUuid}".replaceAll("\\{format\\}", "json")
            .replaceAll("\\{" + "jobUuid" + "\\}", apiClient.escapeString(jobUuid.toString()))
            .replaceAll("\\{" + "tenantName" + "\\}", apiClient.escapeString(tenantName.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();

    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    final String[] localVarAccepts = {

    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null)
        localVarHeaderParams.put("Accept", localVarAccept);

    final String[] localVarContentTypes = {

    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    if (progressListener != null) {
        apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
            @Override
            public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain)
                    throws IOException {
                com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
                return originalResponse.newBuilder()
                        .body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();
            }
        });
    }

    String[] localVarAuthNames = new String[] {};
    return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams,
            localVarFormParams, localVarAuthNames, progressRequestListener);
}

From source file:com.oracle.bdcs.bdm.client.api.Jobs.java

License:Apache License

private com.squareup.okhttp.Call createJobCall(ExecutionobParameters body, String tenantName,
        final ProgressResponseBody.ProgressListener progressListener,
        final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    Object localVarPostBody = body;

    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling createJob(Async)");
    }/*from  www. j  av a  2s  . com*/

    // verify the required parameter 'tenantName' is set
    if (tenantName == null) {
        throw new ApiException("Missing the required parameter 'tenantName' when calling createJob(Async)");
    }

    // create path and map variables
    String localVarPath = "/v1.0/tenants/{tenantName}/jobs".replaceAll("\\{format\\}", "json")
            .replaceAll("\\{" + "tenantName" + "\\}", apiClient.escapeString(tenantName.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();

    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    final String[] localVarAccepts = {

    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null)
        localVarHeaderParams.put("Accept", localVarAccept);

    final String[] localVarContentTypes = {

    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    if (progressListener != null) {
        apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
            @Override
            public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain)
                    throws IOException {
                com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
                return originalResponse.newBuilder()
                        .body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();
            }
        });
    }

    String[] localVarAuthNames = new String[] {};
    return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody,
            localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}

From source file:com.oracle.bdcs.bdm.client.api.Jobs.java

License:Apache License

private com.squareup.okhttp.Call deleteJobCall(String jobUuid, String tenantName,
        final ProgressResponseBody.ProgressListener progressListener,
        final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    Object localVarPostBody = null;

    // verify the required parameter 'jobUuid' is set
    if (jobUuid == null) {
        throw new ApiException("Missing the required parameter 'jobUuid' when calling deleteJob(Async)");
    }/*from   w w  w.j  a  v a 2s .com*/

    // verify the required parameter 'tenantName' is set
    if (tenantName == null) {
        throw new ApiException("Missing the required parameter 'tenantName' when calling deleteJob(Async)");
    }

    // create path and map variables
    String localVarPath = "/v1.0/tenants/{tenantName}/jobs/{jobUuid}".replaceAll("\\{format\\}", "json")
            .replaceAll("\\{" + "jobUuid" + "\\}", apiClient.escapeString(jobUuid.toString()))
            .replaceAll("\\{" + "tenantName" + "\\}", apiClient.escapeString(tenantName.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();

    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    final String[] localVarAccepts = {

    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null)
        localVarHeaderParams.put("Accept", localVarAccept);

    final String[] localVarContentTypes = {

    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    if (progressListener != null) {
        apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
            @Override
            public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain)
                    throws IOException {
                com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
                return originalResponse.newBuilder()
                        .body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();
            }
        });
    }

    String[] localVarAuthNames = new String[] {};
    return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
            localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}

From source file:com.oracle.bdcs.bdm.client.api.Jobs.java

License:Apache License

private com.squareup.okhttp.Call getJobCall(String jobUuid, String tenantName,
        final ProgressResponseBody.ProgressListener progressListener,
        final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    Object localVarPostBody = null;

    // verify the required parameter 'jobUuid' is set
    if (jobUuid == null) {
        throw new ApiException("Missing the required parameter 'jobUuid' when calling getJob(Async)");
    }/*from  www .  ja  v  a 2  s .c  o m*/

    // verify the required parameter 'tenantName' is set
    if (tenantName == null) {
        throw new ApiException("Missing the required parameter 'tenantName' when calling getJob(Async)");
    }

    // create path and map variables
    String localVarPath = "/v1.0/tenants/{tenantName}/jobs/{jobUuid}".replaceAll("\\{format\\}", "json")
            .replaceAll("\\{" + "jobUuid" + "\\}", apiClient.escapeString(jobUuid.toString()))
            .replaceAll("\\{" + "tenantName" + "\\}", apiClient.escapeString(tenantName.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();

    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    final String[] localVarAccepts = {

    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null)
        localVarHeaderParams.put("Accept", localVarAccept);

    final String[] localVarContentTypes = {

    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    if (progressListener != null) {
        apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
            @Override
            public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain)
                    throws IOException {
                com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
                return originalResponse.newBuilder()
                        .body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();
            }
        });
    }

    String[] localVarAuthNames = new String[] {};
    return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams,
            localVarFormParams, localVarAuthNames, progressRequestListener);
}

From source file:com.oracle.bdcs.bdm.client.api.Jobs.java

License:Apache License

private com.squareup.okhttp.Call getJobFullLogCall(String jobUuid, String tenantName,
        final ProgressResponseBody.ProgressListener progressListener,
        final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    Object localVarPostBody = null;

    // verify the required parameter 'jobUuid' is set
    if (jobUuid == null) {
        throw new ApiException("Missing the required parameter 'jobUuid' when calling getJobFullLog(Async)");
    }// www. ja v  a  2s . c  o m

    // verify the required parameter 'tenantName' is set
    if (tenantName == null) {
        throw new ApiException("Missing the required parameter 'tenantName' when calling getJobFullLog(Async)");
    }

    // create path and map variables
    String localVarPath = "/v1.0/tenants/{tenantName}/jobs/{jobUuid}/fullLog".replaceAll("\\{format\\}", "json")
            .replaceAll("\\{" + "jobUuid" + "\\}", apiClient.escapeString(jobUuid.toString()))
            .replaceAll("\\{" + "tenantName" + "\\}", apiClient.escapeString(tenantName.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();

    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    final String[] localVarAccepts = {

    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null)
        localVarHeaderParams.put("Accept", localVarAccept);

    final String[] localVarContentTypes = {

    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    if (progressListener != null) {
        apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
            @Override
            public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain)
                    throws IOException {
                com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
                return originalResponse.newBuilder()
                        .body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();
            }
        });
    }

    String[] localVarAuthNames = new String[] {};
    return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams,
            localVarFormParams, localVarAuthNames, progressRequestListener);
}

From source file:com.oracle.bdcs.bdm.client.api.Jobs.java

License:Apache License

private com.squareup.okhttp.Call getJobPreviewLogCall(String jobUuid, String tenantName,
        final ProgressResponseBody.ProgressListener progressListener,
        final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    Object localVarPostBody = null;

    // verify the required parameter 'jobUuid' is set
    if (jobUuid == null) {
        throw new ApiException("Missing the required parameter 'jobUuid' when calling getJobPreviewLog(Async)");
    }/*from   ww  w.  j a  v  a 2  s  .  c o m*/

    // verify the required parameter 'tenantName' is set
    if (tenantName == null) {
        throw new ApiException(
                "Missing the required parameter 'tenantName' when calling getJobPreviewLog(Async)");
    }

    // create path and map variables
    String localVarPath = "/v1.0/tenants/{tenantName}/jobs/{jobUuid}/logPreview"
            .replaceAll("\\{format\\}", "json")
            .replaceAll("\\{" + "jobUuid" + "\\}", apiClient.escapeString(jobUuid.toString()))
            .replaceAll("\\{" + "tenantName" + "\\}", apiClient.escapeString(tenantName.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();

    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    final String[] localVarAccepts = {

    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null)
        localVarHeaderParams.put("Accept", localVarAccept);

    final String[] localVarContentTypes = {

    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    if (progressListener != null) {
        apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
            @Override
            public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain)
                    throws IOException {
                com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
                return originalResponse.newBuilder()
                        .body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();
            }
        });
    }

    String[] localVarAuthNames = new String[] {};
    return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams,
            localVarFormParams, localVarAuthNames, progressRequestListener);
}

From source file:com.oracle.bdcs.bdm.client.api.Jobs.java

License:Apache License

private com.squareup.okhttp.Call listAllJobsCall(String tenantName, String q, Integer offset, Integer limit,
        final ProgressResponseBody.ProgressListener progressListener,
        final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    Object localVarPostBody = null;

    // verify the required parameter 'tenantName' is set
    if (tenantName == null) {
        throw new ApiException("Missing the required parameter 'tenantName' when calling listAllJobs(Async)");
    }/*from   w w w  . ja  va 2s.  co m*/

    // create path and map variables
    String localVarPath = "/v1.0/tenants/{tenantName}/jobs".replaceAll("\\{format\\}", "json")
            .replaceAll("\\{" + "tenantName" + "\\}", apiClient.escapeString(tenantName.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    if (q != null)
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "q", q));
    if (offset != null)
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
    if (limit != null)
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();

    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    final String[] localVarAccepts = {

    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null)
        localVarHeaderParams.put("Accept", localVarAccept);

    final String[] localVarContentTypes = {

    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    if (progressListener != null) {
        apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
            @Override
            public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain)
                    throws IOException {
                com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
                return originalResponse.newBuilder()
                        .body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();
            }
        });
    }

    String[] localVarAuthNames = new String[] {};
    return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams,
            localVarFormParams, localVarAuthNames, progressRequestListener);
}

From source file:com.oracle.bdcs.bdm.client.api.Jobs.java

License:Apache License

private com.squareup.okhttp.Call listAllJobsForGivenTemplateCall(String jobTemplateName, String tenantName,
        Integer limit, Integer offset, final ProgressResponseBody.ProgressListener progressListener,
        final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
    Object localVarPostBody = null;

    // verify the required parameter 'jobTemplateName' is set
    if (jobTemplateName == null) {
        throw new ApiException(
                "Missing the required parameter 'jobTemplateName' when calling listAllJobsForGivenTemplate(Async)");
    }// w w w  . ja  va  2 s  .  c  om

    // verify the required parameter 'tenantName' is set
    if (tenantName == null) {
        throw new ApiException(
                "Missing the required parameter 'tenantName' when calling listAllJobsForGivenTemplate(Async)");
    }

    // create path and map variables
    String localVarPath = "/v1.0/tenants/{tenantName}/jobs/jobTemplates/{jobTemplateName}"
            .replaceAll("\\{format\\}", "json")
            .replaceAll("\\{" + "jobTemplateName" + "\\}", apiClient.escapeString(jobTemplateName.toString()))
            .replaceAll("\\{" + "tenantName" + "\\}", apiClient.escapeString(tenantName.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    if (limit != null)
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
    if (offset != null)
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();

    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    final String[] localVarAccepts = {

    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null)
        localVarHeaderParams.put("Accept", localVarAccept);

    final String[] localVarContentTypes = {

    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    if (progressListener != null) {
        apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
            @Override
            public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain)
                    throws IOException {
                com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
                return originalResponse.newBuilder()
                        .body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();
            }
        });
    }

    String[] localVarAuthNames = new String[] {};
    return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams,
            localVarFormParams, localVarAuthNames, progressRequestListener);
}