com.joker17.http.request.core.PResponseHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-request Show documentation
Show all versions of http-request Show documentation
对httpclient进行一定封装,使一些常规请求操作使用起来更简单
The newest version!
package com.joker17.http.request.core;
import com.joker17.http.request.config.BaseRequestConfig;
import org.apache.http.client.methods.HttpRequestBase;
import java.io.IOException;
/**
* response处理器
*
* 注: 大文件时需使用
*
* @param
* @param
*/
public abstract class PResponseHandler {
/**
* 发送请求前执行
*
* @param request
* @param requestConfig
*/
public abstract void beforeExecute(HttpRequestBase request, Z requestConfig);
/**
* 处理返回结果
*
* @param response
* @return
* @throws IOException
*/
public abstract P handleResponse(PResponse response) throws IOException;
}