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

com.atlassian.stash.rest.client.httpclient.HttpClientConfig Maven / Gradle / Ivy

There is a newer version: 2.3.12
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy