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

org.yelong.http.request.HttpRequestFactory Maven / Gradle / Ivy

Go to download

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

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

/**
 * http 请求工厂
 * 
 * @since 1.0
 */
public class HttpRequestFactory {

	/**
	 * 创建默认的http请求
	 * 
	 * @param url    url (http://www.baidu.com)
	 * @param method 请求method (GET、POST)
	 * @return request
	 */
	public static HttpRequest create(String url, String method) {
		return new DefaultHttpRequest(url, method);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy