Class WebServer

java.lang.Object
io.vertx.core.AbstractVerticle
de.wuespace.telestion.services.web.WebServer
All Implemented Interfaces:
io.vertx.core.Verticle

public final class WebServer extends io.vertx.core.AbstractVerticle
A simple WebServer which publishes the index page.
  • Field Summary

    Fields inherited from class io.vertx.core.AbstractVerticle

    context, vertx
  • Constructor Summary

    Constructors
    Constructor
    Description
    Web server with default port 8080.
    WebServer​(int port)
    Creating a WebServer on the specified port.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start​(io.vertx.core.Promise<Void> startPromise)
     

    Methods inherited from class io.vertx.core.AbstractVerticle

    config, deploymentID, getVertx, init, processArgs, start, stop, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebServer

      public WebServer(int port)
      Creating a WebServer on the specified port.
      Parameters:
      port - to bind to
    • WebServer

      public WebServer()
      Web server with default port 8080.
  • Method Details

    • start

      public void start(io.vertx.core.Promise<Void> startPromise) throws Exception
      Specified by:
      start in interface io.vertx.core.Verticle
      Overrides:
      start in class io.vertx.core.AbstractVerticle
      Throws:
      Exception