Package org.kohsuke.github.internal
Class DefaultGitHubConnector
- java.lang.Object
-
- org.kohsuke.github.internal.DefaultGitHubConnector
-
public final class DefaultGitHubConnector extends Object
Internal class that selects what kind ofGitHubConnectorwill be the default. Allows behavior to be changed for different versions of Java, such as supporting Java 11 HttpClient.- Author:
- Liam Newman
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GitHubConnectorcreate()Creates aGitHubConnectorthat will be used as the default connector.
-
-
-
Method Detail
-
create
public static GitHubConnector create()
Creates aGitHubConnectorthat will be used as the default connector. This method currently defaults to returning an instance ofGitHubConnectorHttpConnectorAdapter. This preserves backward compatibility withHttpConnector.For testing purposes, the system property
test.github.connectorcan be set to change the default. Possible values:default,okhttp,httpconnector.Should only be called to set
GitHubConnector.DEFAULT.- Returns:
- a GitHubConnector
-
-