Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1764,12 +1764,7 @@ public Observable<ServiceResponse<List<String>>> listAvailableServerVariablesWit
@Override
public Observable<ServiceResponse<List<String>>> call(Response<ResponseBody> response) {
try {
ServiceResponse<<String>> result = listAvailableServerVariablesDelegate(response);
List<String> items = null;
if (result.body() != null) {
items = result.body().items();
}
ServiceResponse<List<String>> clientResponse = new ServiceResponse<List<String>>(items, result.response());
ServiceResponse<List<String>> clientResponse = listAvailableServerVariablesDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
Expand All @@ -1778,9 +1773,9 @@ public Observable<ServiceResponse<List<String>>> call(Response<ResponseBody> res
});
}

private ServiceResponse<<String>> listAvailableServerVariablesDelegate(Response<ResponseBody> response) throws ErrorException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<<String>, ErrorException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<<String>>() { }.getType())
private ServiceResponse<List<String>> listAvailableServerVariablesDelegate(Response<ResponseBody> response) throws ErrorException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<List<String>, ErrorException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<List<String>>() { }.getType())
.registerError(ErrorException.class)
.build(response);
}
Expand Down Expand Up @@ -1839,12 +1834,7 @@ public Observable<ServiceResponse<List<String>>> listAvailableRequestHeadersWith
@Override
public Observable<ServiceResponse<List<String>>> call(Response<ResponseBody> response) {
try {
ServiceResponse<<String>> result = listAvailableRequestHeadersDelegate(response);
List<String> items = null;
if (result.body() != null) {
items = result.body().items();
}
ServiceResponse<List<String>> clientResponse = new ServiceResponse<List<String>>(items, result.response());
ServiceResponse<List<String>> clientResponse = listAvailableRequestHeadersDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
Expand All @@ -1853,9 +1843,9 @@ public Observable<ServiceResponse<List<String>>> call(Response<ResponseBody> res
});
}

private ServiceResponse<<String>> listAvailableRequestHeadersDelegate(Response<ResponseBody> response) throws ErrorException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<<String>, ErrorException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<<String>>() { }.getType())
private ServiceResponse<List<String>> listAvailableRequestHeadersDelegate(Response<ResponseBody> response) throws ErrorException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<List<String>, ErrorException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<List<String>>() { }.getType())
.registerError(ErrorException.class)
.build(response);
}
Expand Down Expand Up @@ -1914,12 +1904,7 @@ public Observable<ServiceResponse<List<String>>> listAvailableResponseHeadersWit
@Override
public Observable<ServiceResponse<List<String>>> call(Response<ResponseBody> response) {
try {
ServiceResponse<<String>> result = listAvailableResponseHeadersDelegate(response);
List<String> items = null;
if (result.body() != null) {
items = result.body().items();
}
ServiceResponse<List<String>> clientResponse = new ServiceResponse<List<String>>(items, result.response());
ServiceResponse<List<String>> clientResponse = listAvailableResponseHeadersDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
Expand All @@ -1928,9 +1913,9 @@ public Observable<ServiceResponse<List<String>>> call(Response<ResponseBody> res
});
}

private ServiceResponse<<String>> listAvailableResponseHeadersDelegate(Response<ResponseBody> response) throws ErrorException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<<String>, ErrorException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<<String>>() { }.getType())
private ServiceResponse<List<String>> listAvailableResponseHeadersDelegate(Response<ResponseBody> response) throws ErrorException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<List<String>, ErrorException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<List<String>>() { }.getType())
.registerError(ErrorException.class)
.build(response);
}
Expand Down
Loading