apoc.util.google.cloud.GCStorageURLStreamHandlerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apoc-common Show documentation
Show all versions of apoc-common Show documentation
Data types package for Neo4j Procedures
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