Class DefaultGitHubConnector

java.lang.Object
org.kohsuke.github.internal.DefaultGitHubConnector

public final class DefaultGitHubConnector extends Object
Internal class that selects what kind of GitHubConnector will be the default. Allows behavior to be changed for different versions of Java, such as supporting Java 11 HttpClient.
Author:
Liam Newman
  • Method Details

    • create

      public static GitHubConnector create()
      Creates a GitHubConnector that will be used as the default connector.

      For testing purposes, the system property test.github.connector can be set to change the default. Possible values: default, okhttp, httpconnector.

      Should only be called to set GitHubConnector.DEFAULT.

      Returns:
      a GitHubConnector