Package restx.server

Class Jetty11WebServer

java.lang.Object
restx.server.WebServerBase
restx.server.Jetty11WebServer
All Implemented Interfaces:
WebServer

public class Jetty11WebServer extends WebServerBase
  • Constructor Details

    • Jetty11WebServer

      public Jetty11WebServer(String appBase, int aPort)
    • Jetty11WebServer

      public Jetty11WebServer(String webInfLocation, String appBase, int port, String bindInterface)
  • Method Details

    • _start

      protected void _start() throws Exception
      Specified by:
      _start in class WebServerBase
      Throws:
      Exception
    • await

      public void await() throws InterruptedException
      Specified by:
      await in interface WebServer
      Specified by:
      await in class WebServerBase
      Throws:
      InterruptedException
    • _stop

      protected void _stop() throws Exception
      Specified by:
      _stop in class WebServerBase
      Throws:
      Exception
    • createThreadPool

      protected org.eclipse.jetty.util.thread.ThreadPool createThreadPool()
    • createConnector

      protected org.eclipse.jetty.server.ServerConnector createConnector(org.eclipse.jetty.server.Server server)
    • createHandlers

      protected org.eclipse.jetty.server.handler.HandlerCollection createHandlers(org.eclipse.jetty.webapp.WebAppContext webAppContext)
    • createContext

      protected org.eclipse.jetty.webapp.WebAppContext createContext()
    • jettyWebServerSupplier

      public static WebServerSupplier jettyWebServerSupplier(String webInfLocation, String appBase)
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception