Class HttpClientUtils
java.lang.Object
com.day.cq.analytics.sitecatalyst.util.HttpClientUtils
Deprecated.
As of 6.3 (Package Version 5.7.0), with no replacement.
Utility methods for the Apache HTTPClient.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final boolean
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
allowSelfSigned
(HttpClient httpClient, String host, int port) Deprecated.Allows self signed certificates for HTTPS connections with the given host and port.static HttpClient
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.
-
Field Details
-
DEFAULT_CONNECTION_TIMEOUT
public static final int DEFAULT_CONNECTION_TIMEOUTDeprecated.- See Also:
-
DEFAULT_MAX_CONNECTIONS
public static final int DEFAULT_MAX_CONNECTIONSDeprecated.- See Also:
-
DEFAULT_STALE_CONNECTION_CHECK
public static final boolean DEFAULT_STALE_CONNECTION_CHECKDeprecated.- See Also:
-
DEFAULT_SO_LINGER
public static final int DEFAULT_SO_LINGERDeprecated.- See Also:
-
-
Method Details
-
newMultiThreaded
Deprecated.Creates a new thread-safe HTTPClient.- Returns:
- the new thread-safe HttpClient
-
newMultiThreaded
Deprecated.Creates a new thread-safe HTTPClient.- Parameters:
connectionTimeout
- connection timeout in millisecondsmaxConnections
- max concurrent connections- Returns:
- the new thread-safe HttpClient
-
newMultiThreaded
public static HttpClient newMultiThreaded(int connectionTimeout, int maxConnections, boolean staleConnectionCheck, int soLinger) Deprecated.Creates a new thread-safe HTTPClient.- Parameters:
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)- Returns:
- the new thread-safe HttpClient
-
allowSelfSigned
Deprecated.Allows self signed certificates for HTTPS connections with the given host and port.- Parameters:
httpClient
- httpClienthost
- hostport
- port
-
shutdown
Deprecated.Shuts down the HttpConnectionManager in a separate thread.- Parameters:
httpClient
- httpClient
-