apoc.util.s3.S3UrlStreamHandlerFactory Maven / Gradle / Ivy
package apoc.util.s3;
import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;
public class S3UrlStreamHandlerFactory implements URLStreamHandlerFactory {
@Override
public URLStreamHandler createURLStreamHandler(String protocol) {
return new URLStreamHandler() {
@Override
protected URLConnection openConnection(URL url) throws IOException {
return new S3URLConnection(url);
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy