Package org.eclipse.jetty.start
Class Main
java.lang.Object
org.eclipse.jetty.start.Main
Main start class.
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:
- Directory Location: jetty.home=[directory] (the jetty.home location)
- Directory Location: jetty.base=[directory] (the jetty.base location)
- Start Logging behavior: --debug (debugging enabled)
- Start Logging behavior: --start-log-file=logs/start.log (output start logs to logs/start.log location)
- Module Resolution
- Properties Resolution
- Present Optional Informational Options
- Normal Startup
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
copyInThread
(InputStream in, OutputStream out) void
destroy()
private void
private void
dumpClasspathWithVersions
(Classpath classpath) private String
getVersion
(File element) void
void
invokeMain
(ClassLoader classloader, StartArgs args) void
listConfig
(StartArgs args) void
listModules
(StartArgs args) static void
private String
normalizeURI
(String uri) static boolean
printTextResource
(String resourceName) processCommandLine
(String[] cmdLine) processCommandLine
(List<String> cmdLine) Convenience forprocessCommandLine(cmdLine.toArray(new String[cmdLine.size()]))
void
start()
void
void
stop()
void
Stop a running jetty instance.void
void
usage
(boolean exit) (package private) static void
usageExit
(int exit) (package private) static void
-
Field Details
-
EXIT_USAGE
private static final int EXIT_USAGE- See Also:
-
baseHome
-
jsvcStartArgs
-
-
Constructor Details
-
Main
- Throws:
IOException
-
-
Method Details
-
main
-
usageExit
static void usageExit(int exit) -
usageExit
-
copyInThread
-
dumpClasspathWithVersions
-
getBaseHome
-
getVersion
-
invokeMain
public void invokeMain(ClassLoader classloader, StartArgs args) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, ClassNotFoundException, IOException -
listConfig
-
listModules
-
processCommandLine
Convenience forprocessCommandLine(cmdLine.toArray(new String[cmdLine.size()]))
- Parameters:
cmdLine
- the command line- Returns:
- the start args parsed from the command line
- Throws:
Exception
- if unable to process the command line
-
processCommandLine
- Throws:
Exception
-
normalizeURI
-
start
- Throws:
IOException
InterruptedException
-
doStop
-
stop
Stop a running jetty instance.- Parameters:
host
- the hostport
- the portkey
- the key
-
stop
-
usage
public void usage(boolean exit) -
printTextResource
-
init
- Throws:
Exception
-
start
- Throws:
Exception
-
stop
- Throws:
Exception
-
destroy
public void destroy()
-