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

org.fcrepo.client.utility.validate.remote.ServiceInfo Maven / Gradle / Ivy

There is a newer version: 3.8.1
Show newest version
/* The contents of this file are subject to the license and copyright terms
 * detailed in the license directory at the root of the source tree (also 
 * available online at http://fedora-commons.org/license/).
 */

package org.fcrepo.client.utility.validate.remote;

import java.net.URL;

/**
 * Holds the information necessary to open an API-M or API-A client.
 * 
 * @author Jim Blake
 */
public class ServiceInfo {

    private final URL baseUrl;

    private final String username;

    private final String password;

    public ServiceInfo(URL baseUrl, String username, String password) {
        this.baseUrl = baseUrl;
        this.username = username;
        this.password = password;
    }

    public URL getBaseUrl() {
        return baseUrl;
    }

    public String getBaseUrlString() {
        return baseUrl.toExternalForm();
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy