public abstract class ScmUrlUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ILLEGAL_SCM_URL |
Constructor and Description |
---|
ScmUrlUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDelimiter(java.lang.String scmUrl)
Get the delimiter used in the scm url.
|
static java.lang.String |
getProvider(java.lang.String scmUrl)
Get the scm provider from the scm url.
|
static java.lang.String |
getProviderSpecificPart(java.lang.String scmUrl)
Get the provider specific part of the scm url.
|
static boolean |
isValid(java.lang.String scmUrl)
Validate that the scm url is in the correct format.
|
static java.util.List<java.lang.String> |
validate(java.lang.String scmUrl)
Validate that the scm url is in the correct format.
|
private static final java.lang.String ILLEGAL_SCM_URL
public static java.lang.String getDelimiter(java.lang.String scmUrl)
scmUrl
- A valid scm url to parsepublic static java.lang.String getProvider(java.lang.String scmUrl)
scmUrl
- A valid scm url to parsepublic static java.lang.String getProviderSpecificPart(java.lang.String scmUrl)
scmUrl
- A valid scm url to parsepublic static boolean isValid(java.lang.String scmUrl)
scmUrl
- The scm url to validatetrue
if the scm url is in the correct format,
otherwise false
public static java.util.List<java.lang.String> validate(java.lang.String scmUrl)
scmUrl
- The scm url to validateList
that contains the errors that occured