public class OkHttpSimpleGetRequestExecutor extends Object implements RequestExecutor<String,String>
| 限定符和类型 | 字段和说明 |
|---|---|
protected okhttp3.OkHttpClient |
httpClient |
| 构造器和说明 |
|---|
OkHttpSimpleGetRequestExecutor(okhttp3.OkHttpClient httpClient) |
public OkHttpSimpleGetRequestExecutor(okhttp3.OkHttpClient httpClient)
public String execute(String uri, String queryParam) throws DtErrorException, IOException
RequestExecutorexecute 在接口中 RequestExecutor<String,String>uri - uriqueryParam - 数据DtErrorException - 自定义异常IOException - io异常protected String handleResponse(String responseContent) throws DtErrorException
DtErrorExceptionpublic static RequestExecutor<String,String> create(okhttp3.OkHttpClient httpClient)
Copyright © 2021. All rights reserved.