Package b4j.core.session.bugzilla
Interface BugzillaRestClientFactory
- All Known Implementing Classes:
AsyncBugzillaRestClientFactory
public interface BugzillaRestClientFactory
Interface for the REST client factory.
- Since:
- 2.0
- Author:
- ralph
-
Method Summary
Modifier and Type Method Description BugzillaClient
create(java.net.URI serverUri, com.atlassian.httpclient.api.HttpClient httpClient)
Creates an instance of JiraRestClient with given Atlassian HttpClient.BugzillaClient
create(java.net.URI serverUri, com.atlassian.jira.rest.client.AuthenticationHandler authenticationHandler)
Creates an instance of JiraRestClient with default HttpClient settings.BugzillaClient
createWithBasicHttpAuthentication(java.net.URI serverUri, java.lang.String username, java.lang.String password)
Creates an instance of JiraRestClient with default HttpClient settings.
-
Method Details
-
create
BugzillaClient create(java.net.URI serverUri, com.atlassian.jira.rest.client.AuthenticationHandler authenticationHandler)Creates an instance of JiraRestClient with default HttpClient settings.- Parameters:
serverUri
- - URI of JIRA instance.authenticationHandler
- - requests authenticator.
-
createWithBasicHttpAuthentication
BugzillaClient createWithBasicHttpAuthentication(java.net.URI serverUri, java.lang.String username, java.lang.String password)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.
-
create
Creates an instance of JiraRestClient with given Atlassian HttpClient. Please note, that this client has to be fully configured to do the request authentication.- Parameters:
serverUri
- - URI of JIRA instance.httpClient
- - instance of Atlassian HttpClient.
-