public final class RepositorySupport extends Object
| Modifier | Constructor and Description |
|---|---|
private |
RepositorySupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
buildHTTPResourceURL(String repoName,
String resourcePath,
boolean https)
Build an HTTP/HTTPS resource URL for the selected repository name and path.
|
static String |
buildHTTPSResourceURL(String repoName,
String resourcePath)
Build an HTTPS resource URL for the selected repository name and path.
|
public static String buildHTTPSResourceURL(@Nonnull String repoName, @Nonnull String resourcePath)
repoName - the repository name. If Git, do not include the ".git" suffix.resourcePath - The relative resource path within the repository, e.g. "foo/bar/baz/file.txt"public static String buildHTTPResourceURL(@Nonnull String repoName, @Nonnull String resourcePath, boolean https)
repoName - the repository name. If Git, do not include a trailing ".git" suffix for bare repos.resourcePath - The relative resource path within the repository, e.g. "foo/bar/baz/file.txt"https - if true, use https if possible, otherwise use httpCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.