| Modifier and Type | Field and Description |
|---|---|
protected ApiClient |
apiClient |
protected String |
apiEndpoint |
protected String |
authorizationValue |
protected Serializer |
serializer |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseServiceClient(ApiConfiguration apiConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> ApiResponse<T> |
executeRequest(String method,
String endpoint,
String path,
List<Pair<String,String>> queryParams,
List<Pair<String,String>> headerParams,
Map<String,String> pathParams,
List<ServiceClientResponse> responseDefinitions,
Object body,
Class<T> responseType,
boolean rawRequest)
Calls the ApiClient based on the ServiceClient specific data provided as well as handles the
well-known responses from the Api
|
protected Object |
invoke(String method,
String endpoint,
String path,
List<Pair<String,String>> queryParams,
List<Pair<String,String>> headerParams,
Map<String,String> pathParams,
List<ServiceClientResponse> responseDefinitions,
Object body,
Class responseType)
Deprecated.
|
protected Object |
invoke(String method,
String endpoint,
String path,
List<Pair<String,String>> queryParams,
List<Pair<String,String>> headerParams,
Map<String,String> pathParams,
List<ServiceClientResponse> responseDefinitions,
Object body,
Class responseType,
boolean rawRequest)
Deprecated.
|
protected ApiClient apiClient
protected Serializer serializer
protected String authorizationValue
protected String apiEndpoint
protected BaseServiceClient(ApiConfiguration apiConfiguration)
@Deprecated protected Object invoke(String method, String endpoint, String path, List<Pair<String,String>> queryParams, List<Pair<String,String>> headerParams, Map<String,String> pathParams, List<ServiceClientResponse> responseDefinitions, Object body, Class responseType) throws ServiceException
method - Http Methodendpoint - Base Endpoint to make the request topath - Specific path to hit. It might contain variables to be interpolated with pathParams.queryParams - Parameter values to be sent as part of the query stringheaderParams - Parameter values to be sent as headerspathParams - Parameter values to be interpolated in the pathresponseDefinitions - Well-known expected responses by the ServiceClientbody - Request bodyresponseType - Type of the expected Response if applicableServiceException - Thrown when a failure happens or when getting an Error Response from
the Api.@Deprecated protected Object invoke(String method, String endpoint, String path, List<Pair<String,String>> queryParams, List<Pair<String,String>> headerParams, Map<String,String> pathParams, List<ServiceClientResponse> responseDefinitions, Object body, Class responseType, boolean rawRequest) throws ServiceException
method - Http Methodendpoint - Base Endpoint to make the request topath - Specific path to hit. It might contain variables to be interpolated with pathParams.queryParams - Parameter values to be sent as part of the query stringheaderParams - Parameter values to be sent as headerspathParams - Parameter values to be interpolated in the pathresponseDefinitions - Well-known expected responses by the ServiceClientbody - Request bodyresponseType - Type of the expected Response if applicableServiceException - Thrown when a failure happens or when getting an Error Response from
the Api.protected <T> ApiResponse<T> executeRequest(String method, String endpoint, String path, List<Pair<String,String>> queryParams, List<Pair<String,String>> headerParams, Map<String,String> pathParams, List<ServiceClientResponse> responseDefinitions, Object body, Class<T> responseType, boolean rawRequest) throws ServiceException
method - Http Methodendpoint - Base Endpoint to make the request topath - Specific path to hit. It might contain variables to be interpolated with pathParams.queryParams - Parameter values to be sent as part of the query stringheaderParams - Parameter values to be sent as headerspathParams - Parameter values to be interpolated in the pathresponseDefinitions - Well-known expected responses by the ServiceClientbody - Request bodyresponseType - Type of the expected Response if applicableServiceException - Thrown when a failure happens or when getting an Error Response from
the Api.Copyright © 2019. All rights reserved.