public final class UtilsProxy
extends java.lang.Object
Utility class responsible for loading the properties from data base to obtain the data necessary to establish a connection via PROXY. Besides this load will be done in the initialization of the platform, and this class is responsible for setting the data in the virtual machine.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isHostURLInNonProxyList(java.lang.String urlString)
Method that checks whether the specified URL is in the list of non proxy hosts.
|
static boolean |
isLocalPath(java.lang.String path)
Method that checks whether a path represents a host from the local network (
true) or not (false). |
static boolean |
isProxyConfigurationInitialized()
Method that checks if proxy configuration is initialized.
|
static void |
loadProxyConfiguration()
Method that loads the configuration where the properties which configure the PROXY to use are defined.
|
static org.apache.http.HttpHost |
setUpProxyConfigurationInHttpClient(org.apache.http.client.CredentialsProvider credentials,
org.apache.http.client.methods.HttpRequestBase method,
java.lang.String path)
Method that returns the proxy configuration needed in a
HttpHost object. |
static void |
setUpProxyConfigurationInJava()
Method that sets the default properties in the java virtual machine for the proxy.
|
public static void loadProxyConfiguration()
public static void setUpProxyConfigurationInJava()
public static boolean isLocalPath(java.lang.String path)
true) or not (false).path - Parameter that represents the path to check.true) or not (false).public static boolean isProxyConfigurationInitialized()
true)
or not (false).public static boolean isHostURLInNonProxyList(java.lang.String urlString)
urlString - Parameter that represents the URL to check in a string.public static org.apache.http.HttpHost setUpProxyConfigurationInHttpClient(org.apache.http.client.CredentialsProvider credentials,
org.apache.http.client.methods.HttpRequestBase method,
java.lang.String path)
HttpHost object.credentials - Parameter that represents the HTTP client credentials that are modified if needed.method - Parameter that represents the protocol.path - Parameter that represents the path.null if not needed.