Class HttpClientProxyUtils
java.lang.Object
org.eclipse.dirigible.api.v3.http.client.HttpClientProxyUtils
public class HttpClientProxyUtils extends Object
Utility class for working with proxies
-
Field Summary
Fields Modifier and Type Field Description static StringHTTP_NON_PROXY_HOSTSThe HTTP_NON_PROXY_HOSTS.static StringHTTP_PROXY_HOSTThe HTTP_PROXY_HOST.static StringHTTP_PROXY_PORTThe HTTP_PROXY_PORT.static StringHTTPS_PROXY_HOSTThe HTTPS_PROXY_HOST.static StringHTTPS_PROXY_PORTThe HTTPS_PROXY_PORT. -
Constructor Summary
Constructors Constructor Description HttpClientProxyUtils() -
Method Summary
Modifier and Type Method Description static org.apache.http.impl.client.CloseableHttpClientgetHttpClient(boolean trustAll)Returns the http client.static voidsetProxySettings()Sets the proxy settings.
-
Field Details
-
HTTP_PROXY_HOST
The HTTP_PROXY_HOST.- See Also:
- Constant Field Values
-
HTTP_PROXY_PORT
The HTTP_PROXY_PORT.- See Also:
- Constant Field Values
-
HTTPS_PROXY_HOST
The HTTPS_PROXY_HOST.- See Also:
- Constant Field Values
-
HTTPS_PROXY_PORT
The HTTPS_PROXY_PORT.- See Also:
- Constant Field Values
-
HTTP_NON_PROXY_HOSTS
The HTTP_NON_PROXY_HOSTS.- See Also:
- Constant Field Values
-
-
Constructor Details
-
HttpClientProxyUtils
public HttpClientProxyUtils()
-
-
Method Details
-
setProxySettings
Sets the proxy settings.- Throws:
IOException- Signals that an I/O exception has occurred.
-
getHttpClient
public static org.apache.http.impl.client.CloseableHttpClient getHttpClient(boolean trustAll)Returns the http client.- Parameters:
trustAll- if no SSL verification should be done- Returns:
- the http client
-