Code example for ProxySelector

Methods: select

0
 
  private List<Proxy> selectDefault(final URI uri)
  { 
    if (defaultSelector != null)
    { 
      return defaultSelector.select(uri);
    } 
 
    final List<Proxy> list = new ArrayList<Proxy>();
    list.add(Proxy.NO_PROXY);
    return list;
  } 
 
  /** 
   * Called to indicate that a connection could not be established 
   * to a proxy/socks server. An implementation of this method can 
   * temporarily remove the proxies or reorder the sequence of 
   * proxies returned by select(String, String), using the address 
   * and they kind of IOException given. 
   * 
Stop searching for code, let great code find you!  Add Codota to your java IDE