Code example for ProxySelector

Methods: select

  private List<Proxy> selectDefault(final URI uri)
    if (defaultSelector != null)
    final List<Proxy> list = new ArrayList<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.