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

org.yelong.http.net.HttpURLConnectionResolver Maven / Gradle / Ivy

Go to download

简单封装java对http的请求,实现便捷的发送http请求(可以发送携带文件的请求)

The newest version!
/**
 * 
 */
package org.yelong.http.net;

import java.io.IOException;
import java.net.HttpURLConnection;

/**
 * HttpURLConnection 解析器
 * 
 * @since 1.1
 */
public interface HttpURLConnectionResolver {

	/**
	 * 获取请求响应的内容
	 * 
	 * @param connection url connection
	 * @return 响应的内容
	 * @throws IOException io exception
	 */
	byte[] getResponseContent(HttpURLConnection connection) throws IOException;

	/**
	 * 获取请求或者响应的编码
	 * 
	 * @param connection url connection
	 * @return 编码
	 * @throws IOException io exception
	 */
	String getCharset(HttpURLConnection connection) throws IOException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy