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

io.deephaven.uri.resolver.UriResolver Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.uri.resolver;

import java.net.URI;
import java.util.Set;

/**
 * A URI resolver resolves {@link URI URIs} into {@link Object objects}.
 */
public interface UriResolver {

    /**
     * The supported schemes.
     *
     * @return the schemes
     */
    Set schemes();

    /**
     * Returns true if the resolver can {@link #resolve(URI) resolve} the {@code uri}.
     *
     * @param uri the uri
     * @return true if this resolver can resolve uri
     */
    boolean isResolvable(URI uri);

    /**
     * Resolve {@code uri} into an object.
     *
     * @param uri the URI
     * @return the object
     * @throws InterruptedException if the current thread is interrupted
     */
    Object resolve(URI uri) throws InterruptedException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy