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.
|
org.eclipse.jgit.transport.URIish |
setPath(String path)
Set the Gerrit path.
|
org.eclipse.jgit.transport.URIish |
setProject(String projectName)
Set a Gerrit project
|
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.public org.eclipse.jgit.transport.URIish setPath(String path)
public org.eclipse.jgit.transport.URIish setProject(String projectName) throws URISyntaxException
URISyntaxException
Copyright © 2018–2024. All rights reserved.