| java.lang.Object | |
| ↳ | com.atlassian.stash.scm.http.RepositoryUrlFragment |
Utility class for parsing repository slugs and project keys from scm urls.
This class works with URLs that start with:
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Extracts the repository URL fragment from the given path info.
| |||||||||||
Formats this fragment as a path suitable for use with a
URI, such as with URI.resolve(String),
optionally prepending a provided base path. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Extracts the repository URL fragment from the given path info.
| pathInfo | the path info as provided by the getPathInfo() method. |
|---|
| NullPointerException | if the path info is null |
|---|
| repository | the repository to create a fragment for |
|---|
Formats this fragment as a path suitable for use with a URI, such as with URI.resolve(String),
optionally prepending a provided base path.
| basePath | the base path to prepend, or null |
|---|