All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nitorcreations.willow.protocols.ProxylessURLStreamHandler Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.nitorcreations.willow.protocols;

import java.io.IOException;
import java.net.Proxy;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;

/**
 * Abstract base class for URL stream handlers where using a proxy is not relevant.
 * The connection is always done without a proxy even if one is requested.
 * 
 * @author mtommila
 */
public abstract class ProxylessURLStreamHandler extends URLStreamHandler {
  @Override
  protected URLConnection openConnection(URL u, Proxy p) throws IOException {
    return openConnection(u);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy