Package net.shibboleth.shared.testing
Class RepositorySupport
java.lang.Object
net.shibboleth.shared.testing.RepositorySupport
Deprecated, for removal: This API element is subject to removal in a future version.
Support class for working with the project version control repository.
NOTE: If this changes, change the "additional" copy in shib-spring.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDeprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildHTTPResourceURL(String repoName, String resourcePath, boolean https) Deprecated, for removal: This API element is subject to removal in a future version.static StringbuildHTTPResourceURL(String repoName, String resourcePath, boolean https, String branch) Deprecated, for removal: This API element is subject to removal in a future version.static StringbuildHTTPSResourceURL(String repoName, String resourcePath) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
RepositorySupport
private RepositorySupport()Deprecated, for removal: This API element is subject to removal in a future version.Constructor.
-
-
Method Details
-
buildHTTPSResourceURL
@Deprecated(since="5.3.0", forRemoval=true) @Nonnull public static String buildHTTPSResourceURL(@Nonnull String repoName, @Nonnull String resourcePath) Deprecated, for removal: This API element is subject to removal in a future version.Build an HTTPS resource URL for the selected repository name and path on the main branch.- Parameters:
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"- Returns:
- the HTTPS resource URL
-
buildHTTPResourceURL
@Deprecated(since="5.3.0", forRemoval=true) @Nonnull public static String buildHTTPResourceURL(@Nonnull String repoName, @Nonnull String resourcePath, boolean https) Deprecated, for removal: This API element is subject to removal in a future version.Build an HTTP/HTTPS resource URL for the selected repository name and path on the main branch.- Parameters:
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 http- Returns:
- the HTTP(S) resource URL
-
buildHTTPResourceURL
@Deprecated(since="5.3.0", forRemoval=true) @Nonnull public static String buildHTTPResourceURL(@Nonnull String repoName, @Nonnull String resourcePath, boolean https, @Nonnull @NotEmpty String branch) Deprecated, for removal: This API element is subject to removal in a future version.Build an HTTP/HTTPS resource URL for the selected repository name and path.- Parameters:
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 httpbranch- code branch- Returns:
- the HTTP(S) resource URL
- Since:
- 8.2.0
-