io.deephaven.uri.ResolveTools Maven / Gradle / Ivy
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.uri;
import io.deephaven.uri.resolver.UriResolver;
import io.deephaven.uri.resolver.UriResolversInstance;
import java.net.URI;
/**
* The top-level entrypoint for resolving {@link URI URIs} into {@link Object objects}. Uses the global URI resolvers
* instance from {@link UriResolversInstance#get()}.
*
*
* The exact logic will depend on which {@link UriResolver URI resolvers} are installed.
*
* @see StructuredUri structured URI
*/
public class ResolveTools {
/**
* Resolves the {@code uri} into an object.
*
* @param uri the URI
* @return the object
*/
public static Object resolve(String uri) throws InterruptedException {
return resolve(URI.create(uri));
}
/**
* Resolves the {@code uri} into an object.
*
* @param uri the URI
* @return the object
*/
public static Object resolve(URI uri) throws InterruptedException {
return UriResolversInstance.get().resolve(uri);
}
}