package com.atlassian.bitbucket.internal.ssh.service;

import javax.annotation.Nonnull;

/**
 * Resolves the base URL for connecting via SSH.
 */
public interface SshBaseUrlResolver {
    /**
     * @return the explicitly configured SSH base URL or else the {@link #getDefaultBaseUrl() default base URL}
     * e.g. "ssh://server.mycompany.com:7999"
     */
    @Nonnull
    String getBaseUrl();

    /**
     * @return the default SSH base URL as calculated by the server name and the configured SSH port.
     * e.g. "ssh://localhost:7999"
     */
    @Nonnull
    String getDefaultBaseUrl();
}
