/** *######################################################################### * * A component of the Gatherer application, part of the Greenstone digital * library suite from the New Zealand Digital Library Project at the * University of Waikato, New Zealand. * * Author: John Thompson and David Bainbridge, * Greenstone Digital Library, University of Waikato * * Copyright (C) 1999 New Zealand Digital Library Project * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *######################################################################## */ package org.greenstone.gatherer; import java.io.*; import org.greenstone.gatherer.util.StaticStrings; import org.greenstone.gatherer.util.Utility; public class FedoraInfo { public String home = null; public String hostname = null; public String port = null; public String username = null; public String password = null; public String protocol = null; public FedoraInfo() { this.hostname ="localhost"; this.port = "8080"; this.username = "fedoraAdmin"; this.password = "fedoraAdmin"; this.protocol = "http"; } public FedoraInfo(String hostname, String port, String username, String password, String protocol) { this.hostname = hostname; this.port = port; this.username = username; this.password = password; this.protocol = protocol; } public boolean isActive() { return home != null; } public void setHome(String home) { this.home = home; } public String getHome() { return home; } public void setHostname(String hostname) { this.hostname = hostname; } public String getHostname() { return hostname; } public void setPort(String port) { this.port = port; } public String getPort() { return port; } public void setUsername(String username) { this.username = username; } public String getUsername() { return username; } public void setPassword(String password) { this.password = password; } public String getPassword() { return password; } public void setProtocol(String protocol) { this.protocol = protocol; } public String getProtocol() { return protocol; } }