Interface JiraRestClientFactory
public interface JiraRestClientFactory
Factory for producing JIRA REST com.atlassian.jira.client with selected authentication handler
- Since:
- v0.1
-
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of JiraRestClient with given Atlassian HttpClient.create(URI serverUri, AuthenticationHandler authenticationHandler) Creates an instance of JiraRestClient with default HttpClient settings.createWithAuthenticationHandler(URI serverUri, AuthenticationHandler authenticationHandler) Creates an instance of JiraRestClient with default HttpClient settings.createWithBasicHttpAuthentication(URI serverUri, String username, String password) Creates an instance of JiraRestClient with default HttpClient settings.
-
Method Details
-
create
Creates an instance of JiraRestClient with default HttpClient settings.- Parameters:
serverUri- - URI of JIRA instance.authenticationHandler- - requests authenticator.
-
createWithBasicHttpAuthentication
Creates an instance of JiraRestClient with default HttpClient settings. HttpClient will conduct a basic authentication for given credentials.- Parameters:
serverUri- - URI or JIRA instance.username- - username of the user used to log in to JIRA.password- - password of the user used to log in to JIRA.
-
createWithAuthenticationHandler
JiraRestClient createWithAuthenticationHandler(URI serverUri, AuthenticationHandler authenticationHandler) Creates an instance of JiraRestClient with default HttpClient settings. HttpClient will call the provided authentication handler prior to making requests.- Parameters:
serverUri- - URI or JIRA instance.authenticationHandler- - Authentication handler.
-
create
Creates an instance of JiraRestClient with given Atlassian HttpClient. Please note, that this com.atlassian.jira.rest.client.api has to be fully configured to do the request authentication.- Parameters:
serverUri- - URI of JIRA instance.httpClient- - instance of Atlassian HttpClient.
-