Class Runner


  • public class Runner
    extends Object
    Runner

    Combine jetty classes into a single executable jar and run webapps based on the args to it.

    • Field Detail

      • __plusConfigurationClasses

        public static final String[] __plusConfigurationClasses
      • _server

        protected org.eclipse.jetty.server.Server _server
      • _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
    • Constructor Detail

      • Runner

        public Runner()
    • 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)