public class Runner extends Object
Combine jetty classes into a single executable jar and run webapps based on the args to it.
| Modifier and Type | Class and Description |
|---|---|
class |
Runner.Classpath
Classpath
|
| Modifier and Type | Field and Description |
|---|---|
static String |
__containerIncludeJarPattern |
static String |
__defaultContextPath |
static int |
__defaultPort |
static String[] |
__plusConfigurationClasses |
protected URLClassLoader |
_classLoader |
protected Runner.Classpath |
_classpath |
protected ArrayList<String> |
_configFiles |
protected org.eclipse.jetty.server.handler.ContextHandlerCollection |
_contexts |
protected boolean |
_enableStats |
protected String |
_logFile |
protected org.eclipse.jetty.server.handler.RequestLogHandler |
_logHandler |
protected org.eclipse.jetty.server.Server |
_server |
protected String |
_statsPropFile |
| Constructor and Description |
|---|
Runner() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(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(String[] args) |
protected void |
prependHandler(org.eclipse.jetty.server.Handler handler,
org.eclipse.jetty.server.handler.HandlerCollection handlers) |
void |
run() |
void |
usage(String error)
Generate helpful usage message and exit
|
void |
version()
Generate version message and exit
|
public static final String[] __plusConfigurationClasses
public static final String __containerIncludeJarPattern
public static final String __defaultContextPath
public static final int __defaultPort
protected org.eclipse.jetty.server.Server _server
protected URLClassLoader _classLoader
protected Runner.Classpath _classpath
protected org.eclipse.jetty.server.handler.ContextHandlerCollection _contexts
protected org.eclipse.jetty.server.handler.RequestLogHandler _logHandler
protected String _logFile
protected boolean _enableStats
protected String _statsPropFile
public void usage(String error)
error - the error headerpublic void version()
public void configure(String[] args) throws Exception
args - the command line argumentsException - if unable to configureprotected void prependHandler(org.eclipse.jetty.server.Handler handler,
org.eclipse.jetty.server.handler.HandlerCollection handlers)
protected void initClassLoader()
public static void main(String[] args)
Copyright © 1995–2021 Webtide. All rights reserved.