public class Runner
extends java.lang.Object
Combine jetty classes into a single executable jar and run webapps based on the args to it.
| Modifier and Type | Class | Description |
|---|---|---|
class |
Runner.Classpath |
Classpath
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
__containerIncludeJarPattern |
|
static java.lang.String |
__defaultContextPath |
|
static int |
__defaultPort |
|
static java.lang.String[] |
__plusConfigurationClasses |
|
protected java.net.URLClassLoader |
_classLoader |
|
protected Runner.Classpath |
_classpath |
|
protected java.util.ArrayList<java.lang.String> |
_configFiles |
|
protected ContextHandlerCollection |
_contexts |
|
protected boolean |
_enableStats |
|
protected java.lang.String |
_logFile |
|
protected RequestLogHandler |
_logHandler |
|
protected Server |
_server |
|
protected java.lang.String |
_statsPropFile |
| Constructor | Description |
|---|---|
Runner() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
configure(java.lang.String[] args) |
Configure a jetty instance and deploy the webapps presented as args
|
protected void |
initClassLoader() |
Establish a classloader with custom paths (if any)
|
static void |
main(java.lang.String[] args) |
|
protected void |
prependHandler(Handler handler,
HandlerCollection handlers) |
|
void |
run() |
|
void |
usage(java.lang.String error) |
Generate helpful usage message and exit
|
void |
version() |
Generate version message and exit
|
public static final java.lang.String[] __plusConfigurationClasses
public static final java.lang.String __containerIncludeJarPattern
public static final java.lang.String __defaultContextPath
public static final int __defaultPort
protected Server _server
protected java.net.URLClassLoader _classLoader
protected Runner.Classpath _classpath
protected ContextHandlerCollection _contexts
protected RequestLogHandler _logHandler
protected java.lang.String _logFile
protected java.util.ArrayList<java.lang.String> _configFiles
protected boolean _enableStats
protected java.lang.String _statsPropFile
public void usage(java.lang.String error)
error - the error headerpublic void version()
public void configure(java.lang.String[] args)
throws java.lang.Exception
args - the command line argumentsjava.lang.Exception - if unable to configureprotected void prependHandler(Handler handler, HandlerCollection handlers)
public void run()
throws java.lang.Exception
java.lang.Exceptionprotected void initClassLoader()
public static void main(java.lang.String[] args)
Copyright © 1995–2018 Webtide. All rights reserved.