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

com.joker17.http.request.core.PResponseHandler Maven / Gradle / Ivy

Go to download

对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; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy