top.jfunc.common.http.converter.json.ConverterSmartHttpClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of network Show documentation
Show all versions of network Show documentation
http客户端请求工具类,有多种实现:OKHttp3、ApacheHttpClient、HttpURLConnection,可以随意切换http实现
package top.jfunc.common.http.converter.json;
import top.jfunc.common.converter.JsonConverter;
import top.jfunc.common.http.converter.bean.BeanSmartHttpClient;
import top.jfunc.common.http.smart.Request;
import java.io.IOException;
/**
* @author xiongshiyan at 2017/12/9
* 对结果集进行转换
*/
public interface ConverterSmartHttpClient extends BeanSmartHttpClient {
ConverterSmartHttpClient setConverter(JsonConverter converter);
/**
* get请求并对结果生成一个结果转换器
*/
ResultConverter getAndConvert(Request request) throws IOException;
/**
* post请求并对结果生成一个结果转换器
*/
ResultConverter postAndConvert(Request request) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy