Examples of AsynchronousHttpClientFactory


Examples of com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory

    private final OesbAsynchronousUserRestClient userRestClient;

    public RestJiraClient(URI serverUri, String username, String password) {
        final URI baseUri = UriBuilder.fromUri(serverUri).path("/rest/api/latest").build();
        final HttpClient httpClient =
            new AsynchronousHttpClientFactory().createClient(serverUri, new BasicHttpAuthenticationHandler(username,
                    password));
        jiraRestClient = new AsynchronousJiraRestClientFactory().create(serverUri, httpClient);
        userRestClient = new OesbAsynchronousUserRestClient(baseUri, httpClient);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.