Class HttpServerBuilder

java.lang.Object
io.vertx.mutiny.core.http.HttpServerBuilder
All Implemented Interfaces:
MutinyDelegate

public class HttpServerBuilder extends Object implements MutinyDelegate
A builder for HttpServer.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Julien Viet
See Also:
  • HttpServerBuilder
  • Field Details

  • Constructor Details

    • HttpServerBuilder

      public HttpServerBuilder(io.vertx.core.http.HttpServerBuilder delegate)
      Create a new instance of HttpServerBuilder delegating to the given (non-null) instance of HttpServerBuilder.
    • HttpServerBuilder

      public HttpServerBuilder(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.core.http.HttpServerBuilder getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • with

      public HttpServerBuilder with(io.vertx.core.http.HttpServerConfig config)
      Configure the server.
      Parameters:
      config - the server config
      Returns:
      a reference to this, so the API can be used fluently
    • with

      public HttpServerBuilder with(io.vertx.core.net.ServerSSLOptions options)
      Configure the server with the given SSL options.
      Parameters:
      options - the SSL options
      Returns:
      a reference to this, so the API can be used fluently
    • with

      public HttpServerBuilder with(io.vertx.core.net.SSLEngineOptions engine)
      Configure the server with the given SSL engine.
      Parameters:
      engine - the SSL engine options
      Returns:
      a reference to this, so the API can be used fluently
    • withConnectHandler

      public HttpServerBuilder withConnectHandler(Consumer<HttpConnection> handler)
      Set a connection handler for the server. This handler is called when a new connection is established.
      Returns:
      a reference to this, so the API can be used fluently
    • build

      public HttpServer build()
      Build and return the server.
      Returns:
      the server as configured by this builder
    • newInstance

      public static HttpServerBuilder newInstance(io.vertx.core.http.HttpServerBuilder delegate)
      Creates a new instance of the HttpServerBuilder.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object