com.atlassian.stash.rest.client.httpclient.HttpClientConfig 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 javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.net.URL;
public class HttpClientConfig {
@Nonnull private final URL baseUrl;
@Nullable private final String username;
@Nullable private final String password;
public HttpClientConfig(@Nonnull URL baseUrl, @Nullable String username, @Nullable String password) {
this.baseUrl = baseUrl;
this.username = username;
this.password = password;
}
@Nonnull
public URL getBaseUrl() {
return baseUrl;
}
@Nullable
public String getUsername() {
return username;
}
@Nullable
public String getPassword() {
return password;
}
}