public class HttpUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_PROXY_PASSWORD |
static String |
HTTP_PROXY_USER |
static String |
NON_PROXY_HOSTS |
static String |
PROXY_HOST |
static String |
PROXY_PORT |
static String |
USE_PROXY |
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
static Properties |
generateProxyPropertiesForJDBC()
Helper method to decide whether to add any properties related to proxy server.
|
static net.snowflake.client.jdbc.internal.apache.http.impl.client.CloseableHttpClient |
getHttpClient(String accountName) |
static Boolean |
shouldBypassProxy(String accountName)
Changes the account name to the format accountName.snowflakecomputing.com then returns a
boolean to indicate if we should go through a proxy or not.
|
static void |
shutdownHttpConnectionManagerDaemonThread()
Shuts down the daemon thread.
|
public static final String USE_PROXY
public static final String PROXY_HOST
public static final String PROXY_PORT
public static final String NON_PROXY_HOSTS
public static final String HTTP_PROXY_USER
public static final String HTTP_PROXY_PASSWORD
public static net.snowflake.client.jdbc.internal.apache.http.impl.client.CloseableHttpClient getHttpClient(String accountName)
{@code
- String} account name to connect to (excluding snowflakecomputing.com domain)public static Properties generateProxyPropertiesForJDBC()
public static void shutdownHttpConnectionManagerDaemonThread()
Copyright © 2023. All rights reserved.