internal.sdmxdl.web.spi.DefaultNetwork 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 internal.sdmxdl.web.spi;
import lombok.NonNull;
import sdmxdl.web.spi.Network;
import sdmxdl.web.spi.SSLFactory;
import sdmxdl.web.spi.URLConnectionFactory;
import java.net.ProxySelector;
public enum DefaultNetwork implements Network {
INSTANCE;
@Override
public @NonNull ProxySelector getProxySelector() {
return ProxySelector.getDefault();
}
@Override
public @NonNull SSLFactory getSSLFactory() {
return SSLFactory.getDefault();
}
@Override
public @NonNull URLConnectionFactory getURLConnectionFactory() {
return URLConnectionFactory.getDefault();
}
}