java.lang.Object
org.kohsuke.github.extras.HttpClientGitHubConnector
- All Implemented Interfaces:
GitHubConnector
- Author:
- Liam Newman
-
Field Summary
Fields inherited from interface org.kohsuke.github.connector.GitHubConnector
DEFAULT, OFFLINE -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new HttpClientGitHubConnector with a default HttpClient.HttpClientGitHubConnector(HttpClient client) Instantiates a new HttpClientGitHubConnector. -
Method Summary
Modifier and TypeMethodDescriptionsend(GitHubConnectorRequest connectorRequest) Sends a request and retrieves a raw response for processing.
-
Constructor Details
-
HttpClientGitHubConnector
public HttpClientGitHubConnector()Instantiates a new HttpClientGitHubConnector with a default HttpClient. -
HttpClientGitHubConnector
Instantiates a new HttpClientGitHubConnector.- Parameters:
client- the HttpClient to be used
-
-
Method Details
-
send
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
-