org.apache.geronimo.deployment.cli
Class ServerConnection

java.lang.Object
  extended byorg.apache.geronimo.deployment.cli.ServerConnection

public class ServerConnection
extends Object

Supports online connections to the server, via JSR-88, valid only when the server is online.

Version:
$Rev: 406440 $ $Date: 2006-05-14 23:45:03 +0200 (Sun, 14 May 2006) $

Nested Class Summary
static class ServerConnection.PasswordPrompt
          Prompts for and grabs a password, trying to suppress any console output along the way.
 
Constructor Summary
ServerConnection(String[] args, PrintWriter out, BufferedReader in)
           
 
Method Summary
 void close()
           
 javax.enterprise.deploy.spi.DeploymentManager getDeploymentManager()
           
static Map getOptionHelp()
           
static boolean isGeneralOption(List args, String option)
          Checks whether the stated command-line argument is a general argument (which may be the general argument itself, or a required parameter after the general argument).
 boolean isGeronimo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConnection

public ServerConnection(String[] args,
                        PrintWriter out,
                        BufferedReader in)
                 throws org.apache.geronimo.common.DeploymentException
Method Detail

getOptionHelp

public static Map getOptionHelp()

isGeneralOption

public static boolean isGeneralOption(List args,
                                      String option)
Checks whether the stated command-line argument is a general argument (which may be the general argument itself, or a required parameter after the general argument). For example, if the arguments were "--user bob foo" then this should return true for "--user" and "bob" and false for "foo".

Parameters:
args - The previous arguments on the command line
option - The argument we're checking at the moment
Returns:
True if the argument we're checking is part of a general argument

close

public void close()
           throws org.apache.geronimo.common.DeploymentException
Throws:
org.apache.geronimo.common.DeploymentException

getDeploymentManager

public javax.enterprise.deploy.spi.DeploymentManager getDeploymentManager()

isGeronimo

public boolean isGeronimo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.