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 String |
extractUsername(String repositoryUrl) |
static URI |
getUriViaProxy(GitRepositoryAccessData proxyAccessData,
ScpAwareUri repositoryUri) |
static boolean |
hasScpSyntax(String url) |
static org.eclipse.jgit.transport.URIish |
normaliseRepositoryLocation(String userName,
String password,
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(ScpAwareUri repositoryUri) |
static boolean |
requiresSshTransport(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 String extractUsername(String repositoryUrl) throws URISyntaxException
URISyntaxExceptionpublic static boolean requiresSshTransport(@NotNull
ScpAwareUri repositoryUri)
public static boolean requiresSshTransport(@NotNull
String repositoryUrl)
public static boolean hasScpSyntax(@NotNull
String url)
public static URI getUriViaProxy(GitRepositoryAccessData proxyAccessData, ScpAwareUri repositoryUri) throws URISyntaxException
URISyntaxExceptionpublic static org.eclipse.jgit.transport.URIish normaliseRepositoryLocation(@Nullable
String userName,
@Nullable
String password,
@NotNull
org.eclipse.jgit.transport.URIish normalised,
boolean shouldAddFakeAuthData)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.