All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.common.http.converter.json.ConverterSmartHttpClient Maven / Gradle / Ivy

Go to download

http客户端请求工具类,有多种实现:OKHttp3、ApacheHttpClient、HttpURLConnection,可以随意切换http实现

There is a newer version: 1.8.2.0
Show newest version
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