public class GitHubBuilder extends Object
| Constructor and Description |
|---|
GitHubBuilder() |
| Modifier and Type | Method and Description |
|---|---|
GitHub |
build() |
static GitHubBuilder |
fromCredentials()
First check if the credentials are configured using the ~/.github properties file.
|
static GitHubBuilder |
fromEnvironment() |
static GitHubBuilder |
fromEnvironment(String loginVariableName,
String passwordVariableName,
String oauthVariableName) |
static GitHubBuilder |
fromProperties(Properties props) |
static GitHubBuilder |
fromPropertyFile() |
static GitHubBuilder |
fromPropertyFile(String propertyFileName) |
GitHubBuilder |
withConnector(HttpConnector connector) |
GitHubBuilder |
withEndpoint(String endpoint) |
GitHubBuilder |
withOAuthToken(String oauthToken) |
GitHubBuilder |
withOAuthToken(String oauthToken,
String user) |
GitHubBuilder |
withPassword(String user,
String password) |
GitHubBuilder |
withProxy(Proxy p)
Configures connector
that uses HTTP library in JRE but use a specific proxy, instead of
the system default one.
|
public static GitHubBuilder fromCredentials() throws IOException
IOException - If there are no credentials defined in the ~/.github properties file or the process environment.public static GitHubBuilder fromEnvironment(String loginVariableName, String passwordVariableName, String oauthVariableName) throws IOException
IOExceptionpublic static GitHubBuilder fromEnvironment() throws IOException
IOExceptionpublic static GitHubBuilder fromPropertyFile() throws IOException
IOExceptionpublic static GitHubBuilder fromPropertyFile(String propertyFileName) throws IOException
IOExceptionpublic static GitHubBuilder fromProperties(Properties props)
public GitHubBuilder withEndpoint(String endpoint)
public GitHubBuilder withPassword(String user, String password)
public GitHubBuilder withOAuthToken(String oauthToken)
public GitHubBuilder withOAuthToken(String oauthToken, String user)
public GitHubBuilder withConnector(HttpConnector connector)
public GitHubBuilder withProxy(Proxy p)
public GitHub build() throws IOException
IOExceptionCopyright © 2015. All rights reserved.