org.cip4.jdflib.util.net
Class ProxyUtil

java.lang.Object
  extended by org.cip4.jdflib.util.net.ProxyUtil

public class ProxyUtil
extends Object

internal proxy handler

Author:
Rainer Prosi, Heidelberger Druckmaschinen *

Constructor Summary
ProxyUtil()
           
 
Method Summary
static URI getHostURI(URL url)
          get the uri of the host with protocol and port for proxy selection
static void setProxy(String proxy)
           
static void setProxy(String proxy, int port, String user, String pw)
          setup the environment for proxies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyUtil

public ProxyUtil()
Method Detail

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 port
user - the user for authentication, if null no authentication is attempted
pw - the pass word for authentication

setProxy

public static void setProxy(String proxy)
Parameters:
proxy -


Copyright © 2013. All Rights Reserved.