public abstract class ProxyUtils
extends java.lang.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(java.lang.String str)
Checks if is empty.
|
static boolean |
isNotProxyHost(java.lang.String targetHost)
Checks if is not proxy host.
|
static boolean |
isProxyEnabled(java.net.URL targetURL,
java.lang.String proxyHost)
Checks if proxy is enabled.
|
static void |
setProxyConfiguration(java.lang.String url,
org.apache.commons.httpclient.HttpClient client)
Sets the proxy configuration.
|
public static void setProxyConfiguration(java.lang.String url,
org.apache.commons.httpclient.HttpClient client)
throws PortalException
url - the urlclient - the clientPortalException - the portal exceptionpublic static boolean isProxyEnabled(java.net.URL targetURL,
java.lang.String proxyHost)
targetURL - the target urlproxyHost - the proxy hostpublic static boolean isNotProxyHost(java.lang.String targetHost)
targetHost - the target hostpublic static ProxyUtils.ProxyConfig getProxyConfigFromEnvProperties()
public static ProxyUtils.ProxyCredentials getProxyUserFromEnvProperties()
public static boolean isEmpty(java.lang.String str)
str - the strCopyright © 2014. All Rights Reserved.