top.jfunc.common.http.converter.bean.BeanSmartHttpClient 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.bean;
import top.jfunc.common.converter.Converter;
import top.jfunc.common.http.smart.Request;
import top.jfunc.common.http.smart.SmartHttpClient;
import java.io.IOException;
/**
* @author xiongshiyan at 2017/12/9
* 对结果集进行转换
*/
public interface BeanSmartHttpClient extends SmartHttpClient{
BeanSmartHttpClient setConverter(Converter converter);
/**
* get请求并对结果生成一个结果转换器
*/
T get(Request request, Class clazz) throws IOException;
/**
* post请求并对结果生成一个结果转换器
*/
T post(Request request, Class clazz) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy