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

me.chanjar.weixin.util.http.RequestExecutor Maven / Gradle / Ivy

package me.chanjar.weixin.util.http;

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;

import me.chanjar.weixin.exception.WxErrorException;

/**
 * http请求执行器
 * @author chanjarster
 *
 * @param  返回值类型
 * @param  请求参数类型
 */
public interface RequestExecutor {

  public static final CloseableHttpClient httpclient = HttpClients.createDefault();

  public T execute(String uri, E data) throws WxErrorException, ClientProtocolException, IOException;
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy