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:
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
BaseHome |
getBaseHome() |
void |
init(String[] args) |
void |
invokeMain(ClassLoader classloader,
StartArgs args) |
static String |
join(Collection<?> objs,
String delim) |
void |
listConfig(StartArgs args) |
static void |
main(String[] args) |
static boolean |
printTextResource(String resourceName) |
StartArgs |
processCommandLine(List<String> cmdLine)
Convenience for
processCommandLine(cmdLine.toArray(new String[cmdLine.size()])) |
StartArgs |
processCommandLine(String[] cmdLine) |
void |
start() |
void |
start(StartArgs args) |
void |
stop() |
void |
stop(int port,
String key)
Stop a running jetty instance.
|
void |
stop(int port,
String key,
int timeout) |
void |
usage(boolean exit) |
public Main() throws IOException
IOException
public static String join(Collection<?> objs, String delim)
public static void main(String[] args)
public BaseHome getBaseHome()
public void invokeMain(ClassLoader classloader, 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)
public static boolean printTextResource(String resourceName)
public void destroy()
Copyright © 1995-2015 Webtide. All Rights Reserved.