Package org.kohsuke.github.extras
Class HttpClientGitHubConnector
- java.lang.Object
-
- org.kohsuke.github.extras.HttpClientGitHubConnector
-
- All Implemented Interfaces:
GitHubConnector
public class HttpClientGitHubConnector extends Object implements GitHubConnector
GitHubConnectorfor platforms that do not support Java 11 HttpClient.- Author:
- Liam Newman
-
-
Field Summary
-
Fields inherited from interface org.kohsuke.github.connector.GitHubConnector
DEFAULT, OFFLINE
-
-
Constructor Summary
Constructors Constructor Description HttpClientGitHubConnector()Instantiates a new Impatient http connector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitHubConnectorResponsesend(GitHubConnectorRequest connectorRequest)Sends a request and retrieves a raw response for processing.
-
-
-
Method Detail
-
send
public GitHubConnectorResponse send(GitHubConnectorRequest connectorRequest) throws IOException
Description copied from interface:GitHubConnectorSends a request and retrieves a raw response for processing. Implementers ofGitHubConnector.send(GitHubConnectorRequest)process the information from aGitHubConnectorRequestto open an HTTP connection and retrieve a raw response. They then return a class that extendsGitHubConnectorResponsecorresponding their response data. Clients should not implement their ownGitHubConnectorRequest. TheGitHubConnectorRequestprovided by the caller ofGitHubConnector.send(GitHubConnectorRequest)should be passed to the constructor ofGitHubConnectorResponse.- Specified by:
sendin interfaceGitHubConnector- Parameters:
connectorRequest- the request data to be sent.- Returns:
- a GitHubConnectorResponse for the request
- Throws:
IOException- if there is an I/O error
-
-