public class HttpClientUtils extends Object
| Constructor and Description |
|---|
HttpClientUtils() |
| Modifier and Type | Method and Description |
|---|---|
static StringBuffer |
buildHttpQueryParams(Map<String,Object> params) |
static void |
disconnect(HttpURLConnection httpURLConnection) |
static HttpURLConnection |
execute(String targetUrl,
String method,
Map<String,String> headers,
Map<String,Object> reqParam) |
static HttpURLConnection |
execute(String targetUrl,
String method,
Map<String,String> headers,
javax.servlet.ServletInputStream reqInputStream) |
static HttpURLConnection |
executeGet(String targetUrl,
String method,
Map<String,String> headers,
Map<String,Object> requestParams) |
static HttpURLConnection |
executeValues(String targetUrl,
String method,
Map<String,String> headers,
Map<String,String[]> reqMap) |
static String |
get(String targetUrl,
Map<String,Object> data) |
static HttpResponse |
get(String targetUrl,
Map<String,String> header,
Map<String,Object> body) |
static String |
post(String targetUrl,
Map<String,Object> data) |
static String |
post(String targetUrl,
Map<String,String> headers,
Map<String,Object> params) |
public static String post(String targetUrl, Map<String,Object> data) throws MalformedURLException
MalformedURLExceptionpublic static String post(String targetUrl, Map<String,String> headers, Map<String,Object> params)
public static HttpURLConnection execute(String targetUrl, String method, Map<String,String> headers, Map<String,Object> reqParam) throws MalformedURLException
MalformedURLExceptionpublic static HttpURLConnection executeValues(String targetUrl, String method, Map<String,String> headers, Map<String,String[]> reqMap)
public static HttpURLConnection execute(String targetUrl, String method, Map<String,String> headers, javax.servlet.ServletInputStream reqInputStream)
public static void disconnect(HttpURLConnection httpURLConnection)
public static HttpURLConnection executeGet(String targetUrl, String method, Map<String,String> headers, Map<String,Object> requestParams)
public static StringBuffer buildHttpQueryParams(Map<String,Object> params)
Copyright © 2021. All rights reserved.