|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.io.ProxySetup
public class ProxySetup
This class is used to configure network access through a proxy server and allows you to set the host name, port and any authentication that may be required. It is still possible to set the host and port using JVM parameters (-DhttpProxy.Host=<host name or ip> -DhttpProxy.Port=<port>) but using this class will override the JVM's settings. Various static methods are provided to allow the host, port, scheme (eg. http, https) and authentication to be set up. A method is also provided for setting authentication on a server set up on the JVM's command line.
Constructor Summary | |
---|---|
ProxySetup()
|
Method Summary | |
---|---|
static void |
setupProxy(String proxyHost,
int proxyPort)
Setup proxy server access through the given host and port. |
static void |
setupProxy(String proxyHost,
int proxyPort,
String scheme)
Setup proxy server access through the given host, port and scheme. |
static void |
setupProxy(String proxyHost,
int proxyPort,
String scheme,
UserCredentials proxyCredentials)
Setup proxy server access through the given host, port and scheme using the given user credentials for authorisation. |
static void |
setupProxy(String proxyHost,
int proxyPort,
UserCredentials proxyCredentials)
Setup proxy server access through the given host and port using the given user credentials for authorisation. |
static void |
setupProxy(String proxyUrl,
UserCredentials proxyCredentials)
Setup proxy authentication for proxy access set up on the JVM command line. |
static void |
setupProxyAuthentication(String proxyUrl,
UserCredentials proxyCredentials)
Deprecated. setupProxy(String, UserCredentials) instead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxySetup()
Method Detail |
---|
public static void setupProxy(String proxyHost, int proxyPort)
proxyHost
- the proxy host name or IP addressproxyPort
- the proxy portpublic static void setupProxy(String proxyHost, int proxyPort, String scheme)
proxyHost
- the proxy host name or IP addressproxyPort
- the proxy portscheme
- the scheme (eg. http, https)public static void setupProxy(String proxyHost, int proxyPort, UserCredentials proxyCredentials) throws EsriSecurityException
proxyHost
- the proxy host name or IP addressproxyPort
- the proxy portproxyCredentials
- the proxy credentials
EsriSecurityException
- the security exceptionpublic static void setupProxy(String proxyHost, int proxyPort, String scheme, UserCredentials proxyCredentials) throws EsriSecurityException
proxyHost
- the proxy host name or IP addressproxyPort
- the proxy portscheme
- the scheme (eg. http, https)proxyCredentials
- the proxy credentials
EsriSecurityException
- the esri security exceptionpublic static void setupProxyAuthentication(String proxyUrl, UserCredentials proxyCredentials) throws EsriSecurityException
setupProxy(String, UserCredentials)
instead.
proxyUrl
- the proxy url; this should be the full url including scheme,
host name and port
(<scheme>://<hostname>:<port>)proxyCredentials
- the proxy credentials
EsriSecurityException
- the esri security exceptionpublic static void setupProxy(String proxyUrl, UserCredentials proxyCredentials) throws EsriSecurityException
proxyUrl
- the proxy url; this should be the full url including scheme,
host name and port
(<scheme>://<hostname>:<port>)proxyCredentials
- the proxy credentials
EsriSecurityException
- the esri security exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |