@Deprecated
public class HttpClientUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONNECTION_TIMEOUT
Deprecated.
|
static int |
DEFAULT_MAX_CONNECTIONS
Deprecated.
|
static int |
DEFAULT_SO_LINGER
Deprecated.
|
static boolean |
DEFAULT_STALE_CONNECTION_CHECK
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
allowSelfSigned(HttpClient httpClient,
java.lang.String host,
int port)
Deprecated.
Allows self signed certificates for HTTPS connections with the given host and port.
|
static HttpClient |
newMultiThreaded()
Deprecated.
Creates a new thread-safe HTTPClient.
|
static HttpClient |
newMultiThreaded(int connectionTimeout,
int maxConnections)
Deprecated.
Creates a new thread-safe HTTPClient.
|
static HttpClient |
newMultiThreaded(int connectionTimeout,
int maxConnections,
boolean staleConnectionCheck,
int soLinger)
Deprecated.
Creates a new thread-safe HTTPClient.
|
static void |
shutdown(HttpClient httpClient)
Deprecated.
Shuts down the HttpConnectionManager in a separate thread.
|
public static final int DEFAULT_CONNECTION_TIMEOUT
public static final int DEFAULT_MAX_CONNECTIONS
public static final boolean DEFAULT_STALE_CONNECTION_CHECK
public static final int DEFAULT_SO_LINGER
public static HttpClient newMultiThreaded()
public static HttpClient newMultiThreaded(int connectionTimeout, int maxConnections)
connectionTimeout
- connection timeout in millisecondsmaxConnections
- max concurrent connectionspublic static HttpClient newMultiThreaded(int connectionTimeout, int maxConnections, boolean staleConnectionCheck, int soLinger)
connectionTimeout
- connection timeout in millisecondsmaxConnections
- max concurrent connectionsstaleConnectionCheck
- if reused connections should be checked before using (recommended)soLinger
- timeout before connection is closed forcefully (0 recommended,
otherwise the timeout is awaited when a broken connection is tried to be reused)public static void allowSelfSigned(HttpClient httpClient, java.lang.String host, int port)
httpClient
- httpClienthost
- hostport
- portpublic static void shutdown(HttpClient httpClient)
httpClient
- httpClient"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"