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

io.nosqlbench.nb.addins.s3.s3urlhandler.S3UrlStreamHandler Maven / Gradle / Ivy

Go to download

The top level API module for NoSQLBench. This module should have no internal module dependencies other than the mvn-default module. All modules within NoSQLBench can safely depend on this module with circular dependencies. This module provides cross-cutting code infrastracture, such as path utilities and ways of describing services used between modules. It is also the transitive aggregation point for system-wide library dependencies for logging and testing or similar needs.

There is a newer version: 5.17.0
Show newest version
package io.nosqlbench.nb.addins.s3.s3urlhandler;

import java.io.IOException;
import java.net.URL;
import java.net.URLStreamHandler;

public class S3UrlStreamHandler extends URLStreamHandler {

    private final S3ClientCache clientCache;
    private final String protocol;

    public S3UrlStreamHandler(S3ClientCache clientCache, String protocol) {
        this.clientCache = clientCache;
        this.protocol = protocol;
    }

    @Override
    protected S3UrlConnection openConnection(URL url) throws IOException {
        return new S3UrlConnection(clientCache, url);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy