public abstract class ScmUrlUtils extends Object
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)
scmUrl
- The scm url to validatetrue
if the scm url is in the correct format,
otherwise false
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.