public class Main
extends java.lang.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(java.lang.String[] args) |
void |
invokeMain(java.lang.ClassLoader classloader,
StartArgs args) |
void |
listConfig(StartArgs args) |
void |
listModules(StartArgs args) |
static void |
main(java.lang.String[] args) |
static boolean |
printTextResource(java.lang.String resourceName) |
StartArgs |
processCommandLine(java.util.List<java.lang.String> cmdLine)
Convenience for
processCommandLine(cmdLine.toArray(new String[cmdLine.size()])) |
StartArgs |
processCommandLine(java.lang.String[] cmdLine) |
void |
start() |
void |
start(StartArgs args) |
void |
stop() |
void |
stop(java.lang.String host,
int port,
java.lang.String key)
Stop a running jetty instance.
|
void |
stop(java.lang.String host,
int port,
java.lang.String key,
int timeout) |
void |
usage(boolean exit) |
public static void main(java.lang.String[] args)
public BaseHome getBaseHome()
public void invokeMain(java.lang.ClassLoader classloader, StartArgs args) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException, java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.io.IOException
public void listConfig(StartArgs args)
public void listModules(StartArgs args)
public StartArgs processCommandLine(java.util.List<java.lang.String> cmdLine) throws java.lang.Exception
processCommandLine(cmdLine.toArray(new String[cmdLine.size()]))
cmdLine
- the command linejava.lang.Exception
- if unable to process the command linepublic StartArgs processCommandLine(java.lang.String[] cmdLine) throws java.lang.Exception
java.lang.Exception
public void start(StartArgs args) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void stop(java.lang.String host, int port, java.lang.String key)
host
- the hostport
- the portkey
- the keypublic void stop(java.lang.String host, int port, java.lang.String key, int timeout)
public void usage(boolean exit)
public static boolean printTextResource(java.lang.String resourceName)
public void init(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void start() throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
java.lang.Exception
public void destroy()
Copyright © 1995–2023 Webtide. All rights reserved.