public abstract class ProxyUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyUtils.ProxyConfig
The Class ProxyConfig.
|
static class |
ProxyUtils.ProxyCredentials
The Class ProxyCredentials.
|
| Constructor and Description |
|---|
ProxyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ProxyUtils.ProxyConfig |
getProxyConfigFromEnvProperties()
Retourne les paramètres du proxy http, lus depuis des propriétés système.
|
static ProxyUtils.ProxyCredentials |
getProxyUserFromEnvProperties()
Retourne les paramètres d'authentification au proxy http, lus depuis des propriétés système.
|
static boolean |
isEmpty(String str)
Checks if is empty.
|
static boolean |
isNotProxyHost(String targetHost)
Checks if is not proxy host.
|
static boolean |
isProxyEnabled(URL targetURL,
String proxyHost)
Checks if proxy is enabled.
|
static void |
setProxyConfiguration(String url,
org.apache.commons.httpclient.HttpClient client)
Sets the proxy configuration.
|
public static void setProxyConfiguration(String url, org.apache.commons.httpclient.HttpClient client) throws PortalException
url - the urlclient - the clientPortalException - the portal exceptionpublic static boolean isProxyEnabled(URL targetURL, String proxyHost)
targetURL - the target urlproxyHost - the proxy hostpublic static boolean isNotProxyHost(String targetHost)
targetHost - the target hostpublic static ProxyUtils.ProxyConfig getProxyConfigFromEnvProperties()
public static ProxyUtils.ProxyCredentials getProxyUserFromEnvProperties()
public static boolean isEmpty(String str)
str - the strCopyright © 2021. All rights reserved.