public class GitHubConnector extends Object
| Constructor and Description |
|---|
GitHubConnector() |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getGitHubContentStream(GitHubRepository repository)
Gets the content of a GitHub repository in JSON format
|
static Map<String,MetaDescription> |
getJcoreComponents(GitHubRepository repository,
Boolean exposable)
Lists all folders in a the repository $repo$ of branch %version% with their respective MetaFile InputStream.
|
static InputStream |
getMetaFileStream(String name,
GitHubRepository repository)
Gets the content of a JCoRe component meta file
|
static InputStream |
getPomFileStream(String name,
String module,
String version)
Gets the content of a JCoRe component pom.xml file
|
public static InputStream getMetaFileStream(String name, GitHubRepository repository) throws GithubInformationException
name - e.g. "jcore-ace-reader"GithubInformationExceptionpublic static InputStream getPomFileStream(String name, String module, String version) throws GithubInformationException
name - e.g. "jcore-ace-reader"module - e.g. "jcore-base"version - e.g. "2.3.0-SNAPSHOT"GithubInformationExceptionpublic static InputStream getGitHubContentStream(GitHubRepository repository) throws GithubInformationException
GithubInformationExceptionpublic static Map<String,MetaDescription> getJcoreComponents(GitHubRepository repository, Boolean exposable) throws IOException, GithubInformationException
exposable - should it only include components that can be used as 'building blocks' for a pipelineIOExceptionGithubInformationExceptionCopyright © 2018 JULIE Lab, Germany. All rights reserved.