org.apache.geronimo.deployment.cli
Class ServerConnection

java.lang.Object
  extended by org.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.


Constructor Summary
ServerConnection(String[] args, PrintWriter out, InputStream in)
           
 
Method Summary
 void close()
           
 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,
                        InputStream in)
                 throws org.apache.geronimo.common.DeploymentException
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 DeploymentManager getDeploymentManager()

isGeronimo

public boolean isGeronimo()


Copyright © 2006 Apache Software Foundation. All Rights Reserved.