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

apoc.util.google.cloud.GCStorageURLStreamHandlerFactory Maven / Gradle / Ivy

There is a newer version: 5.25.1
Show newest version
package apoc.util.google.cloud;

import apoc.util.SupportedProtocols;

import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;

@SuppressWarnings("unused") // used from SupportedProtocols
public class GCStorageURLStreamHandlerFactory implements URLStreamHandlerFactory {

    public GCStorageURLStreamHandlerFactory() {}

    @Override
    public URLStreamHandler createURLStreamHandler(final String protocol) {
        final SupportedProtocols supportedProtocols = SupportedProtocols.valueOf(protocol);
        return supportedProtocols == SupportedProtocols.gs ? new GCStorageURLStreamHandler() : null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy