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

io.deephaven.uri.DeephavenUri 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;

/**
 * A Deephaven URI is a structure URI that has a Deephaven-specific scheme, either {@code dh} or {@code dh+plain}.
 *
 * @see ApplicationUri
 * @see FieldUri
 * @see QueryScopeUri
 * @see RemoteUri
 */
public interface DeephavenUri extends StructuredUri {

    /**
     * The scheme for {@link RemoteUri remote URIs} using secure connections, {@code dh}.
     */
    String SECURE_SCHEME = "dh";

    /**
     * The scheme for {@link RemoteUri remote URIs} using plaintext connections, {@code dh+plain}.
     */
    String PLAINTEXT_SCHEME = "dh+plain";

    /**
     * The scheme for non-remote {@link DeephavenUri Deephaven URIs}, {@code dh}.
     */
    String LOCAL_SCHEME = SECURE_SCHEME;

    static boolean isValidScheme(String scheme) {
        return SECURE_SCHEME.equals(scheme) || PLAINTEXT_SCHEME.equals(scheme);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy