sdmxdl.web.spi.URLConnectionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdmx-dl-api Show documentation
Show all versions of sdmx-dl-api Show documentation
Easily download official statistics - API
The newest version!
package sdmxdl.web.spi;
import lombok.NonNull;
import nbbrd.design.StaticFactoryMethod;
import java.io.IOException;
import java.net.Proxy;
import java.net.URL;
import java.net.URLConnection;
@FunctionalInterface
public interface URLConnectionFactory {
@NonNull URLConnection openConnection(@NonNull URL url, @NonNull Proxy proxy) throws IOException;
@StaticFactoryMethod
static @NonNull URLConnectionFactory getDefault() {
return URL::openConnection;
}
}