org.cip4.jdflib.util.net
Class ProxyUtil
java.lang.Object
org.cip4.jdflib.util.net.ProxyUtil
public class ProxyUtil
- extends Object
internal proxy handler
- Author:
- Rainer Prosi, Heidelberger Druckmaschinen *
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyUtil
public ProxyUtil()
getHostURI
public static URI getHostURI(URL url)
- get the uri of the host with protocol and port for proxy selection
- Parameters:
url -
- Returns:
setProxy
public static void setProxy(String proxy,
int port,
String user,
String pw)
- setup the environment for proxies
- Parameters:
proxy - the proxy url - NO PORT!port - the proxy portuser - the user for authentication, if null no authentication is attemptedpw - the pass word for authentication
setProxy
public static void setProxy(String proxy)
- Parameters:
proxy -
Copyright © 2013. All Rights Reserved.