public class WebUtil extends Object
| 构造器和说明 |
|---|
WebUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
fillHeader(org.apache.http.client.methods.HttpRequestBase request,
WebUtilConfig wuc) |
static String |
get(String url,
WebUtilConfig wuc) |
static byte[] |
getData(String url,
WebUtilConfig wuc) |
static <T> T |
getJSON(String url,
WebUtilConfig wuc,
Class<T> clazz) |
static <T> T |
getJSON(String url,
WebUtilConfig wuc,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference) |
static org.apache.http.impl.client.HttpClientBuilder |
newClient(WebUtilConfig wuc) |
static String |
post(String url,
WebUtilConfig wuc,
List<org.apache.http.message.BasicNameValuePair> formData) |
static byte[] |
postData(String url,
WebUtilConfig wuc,
List<org.apache.http.message.BasicNameValuePair> formData) |
static <T> T |
postJSON(String url,
WebUtilConfig wuc,
Class<T> clazz,
List<org.apache.http.message.BasicNameValuePair> formData) |
static <T> T |
postJSON(String url,
WebUtilConfig wuc,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference,
List<org.apache.http.message.BasicNameValuePair> formData) |
public static org.apache.http.impl.client.HttpClientBuilder newClient(WebUtilConfig wuc)
public static void fillHeader(org.apache.http.client.methods.HttpRequestBase request,
WebUtilConfig wuc)
public static String get(String url, WebUtilConfig wuc)
public static byte[] getData(String url, WebUtilConfig wuc)
public static <T> T getJSON(String url, WebUtilConfig wuc, Class<T> clazz)
public static <T> T getJSON(String url, WebUtilConfig wuc, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
public static String post(String url, WebUtilConfig wuc, List<org.apache.http.message.BasicNameValuePair> formData)
public static byte[] postData(String url, WebUtilConfig wuc, List<org.apache.http.message.BasicNameValuePair> formData)
public static <T> T postJSON(String url, WebUtilConfig wuc, Class<T> clazz, List<org.apache.http.message.BasicNameValuePair> formData)
public static <T> T postJSON(String url, WebUtilConfig wuc, com.fasterxml.jackson.core.type.TypeReference<T> typeReference, List<org.apache.http.message.BasicNameValuePair> formData)
Copyright © 2025. All rights reserved.