All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.catools.jira.client.CAsynchronousJiraRestClient Maven / Gradle / Ivy

There is a newer version: 0.1.25
Show newest version
package org.catools.jira.client;

import com.atlassian.jira.rest.client.api.JiraRestClient;
import com.atlassian.jira.rest.client.api.SearchRestClient;
import com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClient;
import com.atlassian.jira.rest.client.internal.async.DisposableHttpClient;

import javax.ws.rs.core.UriBuilder;
import java.net.URI;

public class CAsynchronousJiraRestClient extends AsynchronousJiraRestClient implements JiraRestClient {

    private final SearchRestClient searchRestClient;

    public CAsynchronousJiraRestClient(URI serverUri, DisposableHttpClient httpClient) {
        super(serverUri, httpClient);
        final URI baseUri = UriBuilder.fromUri(serverUri).path("/rest/api/latest").build();
        searchRestClient = new CAsynchronousSearchRestClient(baseUri, httpClient);
    }

    @Override
    public SearchRestClient getSearchClient() {
        return searchRestClient;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy