Package org.mycore.services.http
Class MCRHttpUtils
java.lang.Object
org.mycore.services.http.MCRHttpUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.http.impl.conn.PoolingHttpClientConnectionManager
getConnectionManager
(int maxConnections) static org.apache.http.impl.client.CloseableHttpClient
getHttpClient
(org.apache.http.conn.HttpClientConnectionManager connectionManager, int maxConnections) static org.apache.http.HttpHost
getHttpHost
(String serverUrl) static String
-
Constructor Details
-
MCRHttpUtils
public MCRHttpUtils()
-
-
Method Details
-
getHttpClient
public static org.apache.http.impl.client.CloseableHttpClient getHttpClient(org.apache.http.conn.HttpClientConnectionManager connectionManager, int maxConnections) -
getHttpUserAgent
-
getConnectionManager
public static org.apache.http.impl.conn.PoolingHttpClientConnectionManager getConnectionManager(int maxConnections) -
getHttpHost
-