- java.lang.Object
-
- develop.toolkit.base.utils.HttpAdvice
-
@Deprecated public final class HttpAdvice extends Object
已过时。Http增强工具
-
-
构造器概要
构造器 构造器 说明 HttpAdvice()已过时。
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static HttpClientdefaultHttpClient()已过时。默认的httpClientstatic HttpAdviceResponsedelete(String label, HttpClient httpClient, String url, Map<String,String> headers, String content)已过时。static HttpAdviceResponseget(String label, HttpClient httpClient, String url, Map<String,String> headers, Map<String,Object> parameters)已过时。GET请求static HttpAdviceResponsepost(String label, HttpClient httpClient, String url, Map<String,String> headers, String content)已过时。static HttpAdviceResponseput(String label, HttpClient httpClient, String url, Map<String,String> headers, String content)已过时。static HttpAdviceResponserequest(String label, HttpClient httpClient, String httpMethod, String url, Map<String,String> headers, Map<String,Object> parameters, String content)已过时。通用请求static HttpAdviceResponsesendFormUrlencoded(String label, HttpClient httpClient, String httpMethod, String url, Map<String,String> headers, Map<String,Object> form)已过时。发送x-www-form-urlencoded格式请求static HttpAdviceResponsesendJson(String label, HttpClient httpClient, String httpMethod, String url, Map<String,String> headers, String json)已过时。发送json请求static HttpAdviceResponsesendXml(String label, HttpClient httpClient, String httpMethod, String url, Map<String,String> headers, String xml)已过时。发送xml请求static HttpClientsslHttpClient(SSLContext sslContext)已过时。带ssl的httpClient
-
-
-
方法详细资料
-
defaultHttpClient
public static HttpClient defaultHttpClient()
已过时。默认的httpClient
-
sslHttpClient
public static HttpClient sslHttpClient(SSLContext sslContext)
已过时。带ssl的httpClient- 参数:
sslContext-- 返回:
-
request
public static HttpAdviceResponse request(String label, HttpClient httpClient, String httpMethod, String url, Map<String,String> headers, Map<String,Object> parameters, String content) throws IOException
已过时。通用请求- 抛出:
IOException
-
get
public static HttpAdviceResponse get(String label, HttpClient httpClient, String url, Map<String,String> headers, Map<String,Object> parameters) throws IOException
已过时。GET请求- 抛出:
IOException
-
post
public static HttpAdviceResponse post(String label, HttpClient httpClient, String url, Map<String,String> headers, String content) throws IOException
已过时。- 抛出:
IOException
-
put
public static HttpAdviceResponse put(String label, HttpClient httpClient, String url, Map<String,String> headers, String content) throws IOException
已过时。- 抛出:
IOException
-
delete
public static HttpAdviceResponse delete(String label, HttpClient httpClient, String url, Map<String,String> headers, String content) throws IOException
已过时。- 抛出:
IOException
-
sendFormUrlencoded
public static HttpAdviceResponse sendFormUrlencoded(String label, HttpClient httpClient, String httpMethod, String url, Map<String,String> headers, Map<String,Object> form) throws IOException
已过时。发送x-www-form-urlencoded格式请求- 抛出:
IOException
-
sendJson
public static HttpAdviceResponse sendJson(String label, HttpClient httpClient, String httpMethod, String url, Map<String,String> headers, String json) throws IOException
已过时。发送json请求- 抛出:
IOException
-
sendXml
public static HttpAdviceResponse sendXml(String label, HttpClient httpClient, String httpMethod, String url, Map<String,String> headers, String xml) throws IOException
已过时。发送xml请求- 抛出:
IOException
-
-