
org.fabric3.admin.interpreter.command.UseCommand Maven / Gradle / Ivy
/*
* Fabric3
* Copyright ? 2008 Metaform Systems Limited
*
* This proprietary software may be used only connection with the Fabric3 license
* (the ?License?), a copy of which is included in the software or may be
* obtained at: http://www.metaformsystems.com/licenses/license.html.
* Software distributed under the License is distributed on an ?as is? basis,
* without warranties or conditions of any kind. See the License for the
* specific language governing permissions and limitations of use of the software.
* This software is distributed in conjunction with other software licensed under
* different terms. See the separate licenses for those programs included in the
* distribution for the permitted and restricted uses of such software.
*
*/
package org.fabric3.admin.interpreter.command;
import java.io.PrintStream;
import org.fabric3.admin.api.DomainController;
import org.fabric3.admin.interpreter.Command;
import org.fabric3.admin.interpreter.CommandException;
/**
* @version $Revision$ $Date$
*/
public class UseCommand implements Command {
String username;
String password;
private DomainController controller;
private String domainAddress;
public UseCommand(DomainController controller) {
this.controller = controller;
}
public void setUsername(String username) {
this.username = username;
}
public void setPassword(String password) {
this.password = password;
}
public void setDomainAddress(String domainAddress) {
this.domainAddress = domainAddress;
}
public boolean execute(PrintStream out) throws CommandException {
controller.setDomainAddress(domainAddress);
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy