public interface UcloudRestHttp
| Modifier and Type | Method and Description |
|---|---|
Object |
doGet(BaseRestRequestParam param,
UcloudConfig config,
String restURL,
UcloudHandler handler,
Boolean... asyncFlag)
http get 请求
|
Object |
doPost(BaseRestRequestParam param,
UcloudConfig config,
String restURL,
UcloudHandler handler,
Boolean... asyncFlag)
http post 请求
|
Object doGet(BaseRestRequestParam param, UcloudConfig config, String restURL, UcloudHandler handler, Boolean... asyncFlag) throws Exception
param - 请求参数对象config - 请求环境配置信息handler - 请求结果处理器restURL - 请求地址asyncFlag - 异步标记位 默认true,请求处理器不为NULL时候有效Exception - 同步非回调时,有异常则抛出异常Object doPost(BaseRestRequestParam param, UcloudConfig config, String restURL, UcloudHandler handler, Boolean... asyncFlag) throws Exception
param - 请求参数对象config - 请求环境配置信息handler - 请求结果处理器restURL - 请求地址asyncFlag - 异步标记位 默认true,请求处理器不为NULL时候有效Exception - 同步非回调时,有异常则抛出异常Copyright © 2024. All rights reserved.