Package com.luna.common.net.high
Class HttpHighLevelUtil
java.lang.Object
com.luna.common.net.high.HttpHighLevelUtil
- Author:
- luna
- Description:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.hc.core5.http.impl.bootstrap.RequesterBootstrapstatic org.apache.hc.core5.http.impl.bootstrap.HttpRequester -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TdoDelete(String host, String path, Map<String, String> headers, Map<String, String> queries, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) static <T> TdoGet(String host, String path, Map<String, String> headers, Map<String, String> queries, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) static <T> TdoPost(String host, String path, Map<String, String> headers, Map<String, String> queries, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) static <T> TdoPut(String host, String path, Map<String, String> headers, Map<String, String> queries, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) static <T> TdoRequest(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler, org.apache.hc.core5.http.HttpHost httpHost, org.apache.hc.client5.http.classic.methods.HttpUriRequestBase httpUriRequestBase) static org.apache.hc.core5.http.HttpHoststatic voidinit()static voidsetProxy(int port) static void
-
Field Details
-
BOOTSTRAP
public static final org.apache.hc.core5.http.impl.bootstrap.RequesterBootstrap BOOTSTRAP -
HTTP_REQUESTER
public static org.apache.hc.core5.http.impl.bootstrap.HttpRequester HTTP_REQUESTER
-
-
Constructor Details
-
HttpHighLevelUtil
public HttpHighLevelUtil()
-
-
Method Details
-
init
public static void init() -
setProxy
public static void setProxy(int port) -
setProxy
-
getHost
-
doGet
-
doPost
-
doDelete
-
doPut
-
doRequest
public static <T> T doRequest(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler, org.apache.hc.core5.http.HttpHost httpHost, org.apache.hc.client5.http.classic.methods.HttpUriRequestBase httpUriRequestBase)
-