com.atlassian.stash.rest.client.httpclient.HttpClientStashClientFactoryImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stash-java-client-httpclient Show documentation
Show all versions of stash-java-client-httpclient Show documentation
Stash REST client implementation using Apache HttpClient
package com.atlassian.stash.rest.client.httpclient;
import com.atlassian.stash.rest.client.api.StashClient;
import com.atlassian.stash.rest.client.core.StashClientImpl;
import javax.annotation.Nonnull;
public class HttpClientStashClientFactoryImpl implements HttpClientStashClientFactory {
@Override
public StashClient getStashClient(@Nonnull HttpClientConfig config) {
HttpClientHttpExecutor httpExecutor = new HttpClientHttpExecutor(config);
return new StashClientImpl(httpExecutor);
}
}