public class UriUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FILE_SCHEME |
static String |
FTP_SCHEME |
static String |
FTPS_SCHEME |
static String |
HTTP_SCHEME |
static String |
HTTPS_SCHEME |
static String |
SSH_PREFIX |
Modifier and Type | Method and Description |
---|---|
static @Nullable String |
extractUsername(String repositoryUrl) |
static URI |
getUriViaProxy(GitRepositoryAccessData proxyAccessData,
ScpAwareUri repositoryUri) |
static boolean |
hasScpSyntax(@NotNull String url) |
static org.eclipse.jgit.transport.URIish |
normaliseRepositoryLocation(@Nullable String userName,
@Nullable String password,
@NotNull org.eclipse.jgit.transport.URIish normalised,
boolean shouldAddFakeAuthData)
This method adds/removes username and password from URL to avoid interactive password prompts from the git command line client
|
static boolean |
requiresSshTransport(@NotNull ScpAwareUri repositoryUri) |
static boolean |
requiresSshTransport(@NotNull String repositoryUrl) |
public static final String HTTP_SCHEME
public static final String HTTPS_SCHEME
public static final String FTP_SCHEME
public static final String FTPS_SCHEME
public static final String FILE_SCHEME
public static final String SSH_PREFIX
@Nullable public static @Nullable String extractUsername(String repositoryUrl) throws URISyntaxException
URISyntaxException
public static boolean requiresSshTransport(@NotNull @NotNull ScpAwareUri repositoryUri)
public static boolean requiresSshTransport(@NotNull @NotNull String repositoryUrl)
public static boolean hasScpSyntax(@NotNull @NotNull String url)
public static URI getUriViaProxy(GitRepositoryAccessData proxyAccessData, ScpAwareUri repositoryUri) throws URISyntaxException
URISyntaxException
public static org.eclipse.jgit.transport.URIish normaliseRepositoryLocation(@Nullable @Nullable String userName, @Nullable @Nullable String password, @NotNull @NotNull org.eclipse.jgit.transport.URIish normalised, boolean shouldAddFakeAuthData)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences