public class UcloudHttpImpl extends Object implements UcloudHttp
| 构造器和说明 |
|---|
UcloudHttpImpl(Class<? extends BaseResponseResult> resultClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
doGet(BaseRequestParam param,
UcloudConfig config,
UcloudHandler handler,
Boolean... asyncFlag)
http get 请求
|
Object |
doPost(BaseRequestParam param,
UcloudConfig config,
UcloudHandler handler,
Boolean... asyncFlag)
http post 请求
|
public UcloudHttpImpl(Class<? extends BaseResponseResult> resultClass)
public Object doGet(BaseRequestParam param, UcloudConfig config, UcloudHandler handler, Boolean... asyncFlag) throws Exception
UcloudHttpdoGet 在接口中 UcloudHttpparam - 请求参数对象config - 请求环境配置信息handler - 请求结果处理器asyncFlag - 异步标记位 默认true,请求处理器不为NULL时候有效Exception - 同步非回调时,有异常则抛出异常public Object doPost(BaseRequestParam param, UcloudConfig config, UcloudHandler handler, Boolean... asyncFlag) throws Exception
UcloudHttpdoPost 在接口中 UcloudHttpparam - 请求参数对象config - 请求环境配置信息handler - 请求结果处理器asyncFlag - 异步标记位 默认true,请求处理器不为NULL时候有效Exception - 同步非回调时,有异常则抛出异常Copyright © 2019. All rights reserved.