public class Main extends Object
This class is intended to be the main class listed in the MANIFEST.MF of the start.jar archive. It allows the Jetty Application server to be started with the command "java -jar start.jar".
Argument processing steps:
Modifier and Type | Method and Description |
---|---|
BaseHome |
getBaseHome() |
void |
invokeMain(StartArgs args) |
static String |
join(Collection<?> objs,
String delim) |
void |
listConfig(StartArgs args) |
static void |
main(String[] args) |
StartArgs |
processCommandLine(List<String> cmdLine)
Convenience for
processCommandLine(cmdLine.toArray(new String[cmdLine.size()])) |
StartArgs |
processCommandLine(String[] cmdLine) |
void |
start(StartArgs args) |
void |
stop(int port,
String key)
Stop a running jetty instance.
|
void |
stop(int port,
String key,
int timeout) |
void |
usage(boolean exit) |
public static String join(Collection<?> objs, String delim)
public static void main(String[] args)
public BaseHome getBaseHome()
public void invokeMain(StartArgs args) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, ClassNotFoundException, IOException
public void listConfig(StartArgs args)
public StartArgs processCommandLine(List<String> cmdLine) throws Exception
processCommandLine(cmdLine.toArray(new String[cmdLine.size()]))
Exception
public StartArgs processCommandLine(String[] cmdLine) throws Exception
Exception
public void start(StartArgs args) throws IOException, InterruptedException
IOException
InterruptedException
public void stop(int port, String key)
public void stop(int port, String key, int timeout)
public void usage(boolean exit)
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.