public class GitLabDiscoverer extends GitDiscoverer
Constructor and Description |
---|
GitLabDiscoverer(java.net.URL repoUrl) |
GitLabDiscoverer(java.net.URL repoUrl,
boolean isTrusted)
Must be a public repository, or setToken() must be called.
|
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getApiBase() |
java.util.List<java.lang.String> |
getBranches(int max) |
org.json.JSONObject |
getFileInfo(java.lang.String path,
java.lang.String ref) |
protected HttpHelper |
getHttpHelper(java.lang.String url) |
protected java.lang.String |
getPackageName(java.lang.String path)
Paths are relative to the repository base.
|
java.lang.String |
getRepoName() |
java.lang.String |
getRepoPath() |
java.util.List<java.lang.String> |
getTags(int max) |
org.json.JSONArray |
getTreeInfo(java.lang.String path,
java.lang.String ref,
boolean recursive) |
findPackage, getArrayValues, getAssetPath, getPackageInfo, getPackages, getRef, getRepoUrl, getToken, setRef, setToken, toString
public GitLabDiscoverer(java.net.URL repoUrl) throws java.io.IOException
java.io.IOException
public GitLabDiscoverer(java.net.URL repoUrl, boolean isTrusted) throws java.io.IOException
java.io.IOException
public java.net.URL getApiBase()
getApiBase
in class GitDiscoverer
public java.lang.String getRepoPath()
getRepoPath
in class GitDiscoverer
public java.lang.String getRepoName()
getRepoName
in class GitDiscoverer
public java.util.List<java.lang.String> getBranches(int max) throws java.io.IOException
getBranches
in class GitDiscoverer
java.io.IOException
public java.util.List<java.lang.String> getTags(int max) throws java.io.IOException
getTags
in class GitDiscoverer
java.io.IOException
public org.json.JSONObject getFileInfo(java.lang.String path, java.lang.String ref) throws java.io.IOException
java.io.IOException
public org.json.JSONArray getTreeInfo(java.lang.String path, java.lang.String ref, boolean recursive) throws java.io.IOException
java.io.IOException
protected java.lang.String getPackageName(java.lang.String path) throws java.io.IOException
java.io.IOException
protected HttpHelper getHttpHelper(java.lang.String url) throws java.io.IOException
java.io.IOException
Copyright © 2019 CenturyLink, Inc.