public class GenericExecuteApi extends Object
| 构造器和说明 |
|---|
GenericExecuteApi() |
GenericExecuteApi(ApiClient apiClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiResponse<Object> |
execute(String path,
String method,
OpenApiGenericRequest openApiGenericRequest)
通用方法
|
<T> ApiResponse<T> |
execute(String path,
String method,
OpenApiGenericRequest openApiGenericRequest,
com.google.gson.reflect.TypeToken<T> type) |
String |
getLocalCustomBaseUrl()
Getter method for property localCustomBaseUrl.
|
ApiClient |
getLocalVarApiClient()
Getter method for property localVarApiClient.
|
boolean |
isLoadTest()
Getter method for property loadTest.
|
String |
pageExecute(String method,
String httpMethod,
Map<String,Object> bizParams) |
String |
pageExecute(String method,
String httpMethod,
Map<String,Object> bizParams,
String authToken,
String appAuthToken,
CustomizedParams customizedParams) |
String |
sdkExecute(String method,
Map<String,Object> bizParams) |
String |
sdkExecute(String method,
Map<String,Object> bizParams,
String authToken,
String appAuthToken,
CustomizedParams customizedParams) |
void |
setLoadTest(boolean loadTest)
Setter method for property loadTest.
|
void |
setLocalCustomBaseUrl(String localCustomBaseUrl)
Setter method for property localCustomBaseUrl.
|
void |
setLocalVarApiClient(ApiClient localVarApiClient)
Setter method for property localVarApiClient.
|
public GenericExecuteApi()
public GenericExecuteApi(ApiClient apiClient)
public ApiClient getLocalVarApiClient()
public void setLocalVarApiClient(ApiClient localVarApiClient)
localVarApiClient - value to be assigned to property localVarApiClientpublic String getLocalCustomBaseUrl()
public void setLocalCustomBaseUrl(String localCustomBaseUrl)
localCustomBaseUrl - value to be assigned to property localCustomBaseUrlpublic boolean isLoadTest()
public void setLoadTest(boolean loadTest)
loadTest - value to be assigned to property loadTestpublic ApiResponse<Object> execute(String path, String method, OpenApiGenericRequest openApiGenericRequest) throws ApiException
path - The sub-path of the HTTP URLmethod - The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE"openApiGenericRequest - openApiGenericRequestApiExceptionpublic <T> ApiResponse<T> execute(String path, String method, OpenApiGenericRequest openApiGenericRequest, com.google.gson.reflect.TypeToken<T> type) throws ApiException
T - The return type corresponding to (same with) typepath - The sub-path of the HTTP URLmethod - The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE"openApiGenericRequest - 通用入参type - TypeToken, e.g. new TypeTokenApiExceptionpublic String pageExecute(String method, String httpMethod, Map<String,Object> bizParams) throws ApiException
method - 方法名httpMethod - GET/POSTbizParams - bizContentApiExceptionpublic String pageExecute(String method, String httpMethod, Map<String,Object> bizParams, String authToken, String appAuthToken, CustomizedParams customizedParams) throws ApiException
method - 方法名httpMethod - GET/POSTbizParams - bizContentauthToken - 用户授权凭证appAuthToken - 系统服务商的第三方应用代商家的应用或小程序模板调用支付宝OpenAPI时所传入的授权凭证customizedParams - 额外参数ApiExceptionpublic String sdkExecute(String method, Map<String,Object> bizParams) throws ApiException
method - 方法名bizParams - bizContentApiExceptionpublic String sdkExecute(String method, Map<String,Object> bizParams, String authToken, String appAuthToken, CustomizedParams customizedParams) throws ApiException
method - 方法名bizParams - bizContentauthToken - 用户授权凭证appAuthToken - 系统服务商的第三方应用代商家的应用或小程序模板调用支付宝OpenAPI时所传入的授权凭证customizedParams - 额外参数ApiExceptionCopyright © 2024. All rights reserved.