public class GerritURI extends Object
| Constructor and Description |
|---|
GerritURI(org.eclipse.jgit.transport.URIish remoteURI)
Create a new Gerrit URI from the given remote
URI. |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.transport.URIish |
getApiURI()
Get the Gerrit REST-API base URL, using the correct prefix.
|
String |
getPrefix()
Get the URI prefix from the remote URI.
|
String |
getProject()
Get the Gerrit project name from the remote URI.
|
org.eclipse.jgit.transport.URIish |
getRemoteURI()
Get the full Gerrit remote URI.
|
public GerritURI(org.eclipse.jgit.transport.URIish remoteURI)
URI.remoteURI - the remote URI, e.g. https://host/a/projectpublic org.eclipse.jgit.transport.URIish getRemoteURI()
public String getProject()
public String getPrefix()
public org.eclipse.jgit.transport.URIish getApiURI()
throws URISyntaxException
URISyntaxException - if URL is invalid.Copyright © 2018–2019. All rights reserved.