public class GenericSelfClosingHttpClient extends Object
Constructor and Description |
---|
GenericSelfClosingHttpClient(org.apache.http.impl.client.CloseableHttpClient client) |
GenericSelfClosingHttpClient(HttpClientSettings settings)
HttpClient designed to be used for only one HttpCall.
|
GenericSelfClosingHttpClient(HttpClientSettings settings,
boolean closeAfterUse) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static KeyManager[] |
getKeyManagers(HttpClientSettings settings) |
static org.apache.http.conn.ssl.SSLConnectionSocketFactory |
getSSLFactory(KeyManager[] keyManager,
TrustManager[] trustManagers) |
static TrustManager[] |
getTrustAllSelfSigned() |
String |
sendRequest(org.apache.http.client.methods.HttpUriRequest httpRequest) |
public GenericSelfClosingHttpClient(HttpClientSettings settings)
settings
- public GenericSelfClosingHttpClient(HttpClientSettings settings, boolean closeAfterUse)
public GenericSelfClosingHttpClient(org.apache.http.impl.client.CloseableHttpClient client)
public String sendRequest(org.apache.http.client.methods.HttpUriRequest httpRequest) throws IOException
IOException
public void close() throws IOException
IOException
public static KeyManager[] getKeyManagers(HttpClientSettings settings)
public static TrustManager[] getTrustAllSelfSigned()
public static org.apache.http.conn.ssl.SSLConnectionSocketFactory getSSLFactory(KeyManager[] keyManager, TrustManager[] trustManagers) throws Exception
Exception
Copyright © 2004-2016. All Rights Reserved.