@Deprecated public class DefaultHttpExecutor extends Object
| Modifier and Type | Method and Description |
|---|---|
<T> void |
buildClientEntity(org.apache.http.impl.client.CloseableHttpClient httpClient,
T paramObject)
Deprecated.
Build client entity.
|
<T> org.apache.http.entity.StringEntity |
buildEntity(org.apache.http.entity.StringEntity entity,
T t)
Deprecated.
Build entity string entity.
|
<T> void |
buildGetHeaders(Map<String,String> headers,
T paramObject)
Deprecated.
Build get headers.
|
<T> void |
buildPostHeaders(Map<String,String> headers,
T t)
Deprecated.
Build post headers.
|
<K> K |
convertResult(org.apache.http.HttpResponse response,
Class<K> clazz)
Deprecated.
Convert result k.
|
static DefaultHttpExecutor |
getInstance()
Deprecated.
Gets instance.
|
String |
initGetUrl(String host,
String path,
Map<String,String> querys)
Deprecated.
Init get url string.
|
public static DefaultHttpExecutor getInstance()
public <T> void buildClientEntity(org.apache.http.impl.client.CloseableHttpClient httpClient,
T paramObject)
T - the type parameterhttpClient - the http clientparamObject - the param objectpublic <T> void buildGetHeaders(Map<String,String> headers, T paramObject)
T - the type parameterheaders - the headersparamObject - the param objectpublic String initGetUrl(String host, String path, Map<String,String> querys)
host - the hostpath - the pathquerys - the queryspublic <T> void buildPostHeaders(Map<String,String> headers, T t)
T - the type parameterheaders - the headerst - the tpublic <T> org.apache.http.entity.StringEntity buildEntity(org.apache.http.entity.StringEntity entity,
T t)
T - the type parameterentity - the entityt - the tpublic <K> K convertResult(org.apache.http.HttpResponse response,
Class<K> clazz)
K - the type parameterresponse - the responseclazz - the clazzCopyright © 2025 Apache. All rights reserved.