public abstract class ScmUrlUtils extends Object
If you need methods that work for a specific scm provider, please create a similar class for that provider. E.g. create the class CvsScmUrlUtils if you need cvs specific checking/parsing.
| Constructor and Description |
|---|
ScmUrlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDelimiter(String scmUrl)
Get the delimiter used in the scm url.
|
static String |
getProvider(String scmUrl)
Get the scm provider from the scm url.
|
static String |
getProviderSpecificPart(String scmUrl)
Get the provider specific part of the scm url.
|
static boolean |
isValid(String scmUrl)
Validate that the scm url is in the correct format.
|
static List<String> |
validate(String scmUrl)
Validate that the scm url is in the correct format.
|
public ScmUrlUtils()
public static String getDelimiter(String scmUrl)
scmUrl - A valid scm url to parsepublic static String getProvider(String scmUrl)
scmUrl - A valid scm url to parsepublic static String getProviderSpecificPart(String scmUrl)
scmUrl - A valid scm url to parsepublic static boolean isValid(String scmUrl)
Note: does not validate scm provider specific format.
scmUrl - The scm url to validatetrue if the scm url is in the correct format,
otherwise falseCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.