public class HttpUtil extends Object
| Constructor and Description |
|---|
HttpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
debugHttpRequest(HttpRequest request) |
static String |
debugHttpResponse(HttpResponse response) |
static org.apache.http.HttpHost |
getApacheProxy(String clientProxy,
String envProxy,
HttpRequest request) |
static Boolean |
getIsHttpContentDebug() |
static Boolean |
getIsHttpDebug() |
static Proxy |
getJDKProxy(String clientProxy,
String envProxy,
HttpRequest request) |
static boolean |
needProxy(String targetHost,
String clientNoProxyList,
String envNoProxyList) |
static void |
setIsHttpContentDebug(Boolean isHttpContentDebug) |
static void |
setIsHttpDebug(Boolean isHttpDebug) |
public static Boolean getIsHttpDebug()
public static void setIsHttpDebug(Boolean isHttpDebug)
public static Boolean getIsHttpContentDebug()
public static void setIsHttpContentDebug(Boolean isHttpContentDebug)
public static String debugHttpRequest(HttpRequest request)
public static String debugHttpResponse(HttpResponse response)
public static Proxy getJDKProxy(String clientProxy, String envProxy, HttpRequest request) throws ClientException
ClientExceptionpublic static org.apache.http.HttpHost getApacheProxy(String clientProxy, String envProxy, HttpRequest request) throws ClientException
ClientExceptionCopyright © 2022. All rights reserved.