Class WebServer

java.lang.Object
dev.voidframework.web.server.WebServer

@Bindable public class WebServer extends Object
Web server.
Since:
1.0.0
  • Constructor Details

    • WebServer

      @Inject public WebServer(com.typesafe.config.Config configuration, com.google.inject.Injector injector)
      Build a new instance.
      Parameters:
      configuration - The application configuration
      injector - The injector instance
      Since:
      1.0.0
  • Method Details

    • startWebServer

      public void startWebServer()
      Start the web server.
      Since:
      1.0.0
    • stopWebServer

      public void stopWebServer() throws InterruptedException
      Stop the web server.
      Throws:
      InterruptedException - If web server can't be stopped gracefully
      Since:
      1.0.0