Package org.eclipse.jetty.runner
Class Runner
- java.lang.Object
-
- org.eclipse.jetty.runner.Runner
-
public class Runner extends Object
RunnerCombine jetty classes into a single executable jar and run webapps based on the args to it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRunner.ClasspathClasspath
-
Field Summary
Fields Modifier and Type Field Description static String__containerIncludeJarPatternstatic String__defaultContextPathstatic int__defaultPortstatic String[]__plusConfigurationClassesprotected URLClassLoader_classLoaderprotected Runner.Classpath_classpathprotected ArrayList<String>_configFilesprotected org.eclipse.jetty.server.handler.ContextHandlerCollection_contextsprotected boolean_enableStatsprotected String_logFileprotected org.eclipse.jetty.server.handler.RequestLogHandler_logHandlerprotected org.eclipse.jetty.server.Server_serverprotected String_statsPropFile
-
Constructor Summary
Constructors Constructor Description Runner()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(String[] args)Configure a jetty instance and deploy the webapps presented as argsprotected voidinitClassLoader()Establish a classloader with custom paths (if any)static voidmain(String[] args)protected voidprependHandler(org.eclipse.jetty.server.Handler handler, org.eclipse.jetty.server.handler.HandlerCollection handlers)voidrun()voidusage(String error)Generate helpful usage message and exitvoidversion()Generate version message and exit
-
-
-
Field Detail
-
__plusConfigurationClasses
public static final String[] __plusConfigurationClasses
-
__containerIncludeJarPattern
public static final String __containerIncludeJarPattern
- See Also:
- Constant Field Values
-
__defaultContextPath
public static final String __defaultContextPath
- See Also:
- Constant Field Values
-
__defaultPort
public static final int __defaultPort
- See Also:
- Constant Field Values
-
_server
protected org.eclipse.jetty.server.Server _server
-
_classLoader
protected URLClassLoader _classLoader
-
_classpath
protected Runner.Classpath _classpath
-
_contexts
protected org.eclipse.jetty.server.handler.ContextHandlerCollection _contexts
-
_logHandler
protected org.eclipse.jetty.server.handler.RequestLogHandler _logHandler
-
_logFile
protected String _logFile
-
_enableStats
protected boolean _enableStats
-
_statsPropFile
protected String _statsPropFile
-
-
Method Detail
-
usage
public void usage(String error)
Generate helpful usage message and exit- Parameters:
error- the error header
-
version
public void version()
Generate version message and exit
-
configure
public void configure(String[] args) throws Exception
Configure a jetty instance and deploy the webapps presented as args- Parameters:
args- the command line arguments- Throws:
Exception- if unable to configure
-
prependHandler
protected void prependHandler(org.eclipse.jetty.server.Handler handler, org.eclipse.jetty.server.handler.HandlerCollection handlers)
-
initClassLoader
protected void initClassLoader()
Establish a classloader with custom paths (if any)
-
main
public static void main(String[] args)
-
-