Package org.apache.geronimo.gshell.console

Examples of org.apache.geronimo.gshell.console.PromptReader


    protected Object doExecute() throws Exception {
        io.info("Connecting to: {}", remote);

        RshClient client = new RshClient(crypto, locator, handlers);
        client.initialize();
        PromptReader prompter = new PromptReader(terminal, io);
        prompter.initialize();     

        client.connect(remote, local);

        io.info("Connected");

        // If the username/password was not configured via cli, then prompt the user for the values
        if (username == null || password == null) {
            if (username == null) {
                username = prompter.readLine("Username: ");
            }

            if (password == null) {
                password = prompter.readPassword("Password: ");
            }

            //
            // TODO: Handle null inputs...
            //
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gshell.console.PromptReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.