Package io.vertx.mutiny.core.http
Class HttpServerBuilder
java.lang.Object
io.vertx.mutiny.core.http.HttpServerBuilder
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpServerBuilder(io.vertx.core.http.HttpServerBuilder delegate) Create a new instance ofHttpServerBuilderdelegating to the given (non-null) instance ofHttpServerBuilder.HttpServerBuilder(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build and return the server.booleanio.vertx.core.http.HttpServerBuilderGet the delegate instance.inthashCode()static HttpServerBuildernewInstance(io.vertx.core.http.HttpServerBuilder delegate) Creates a new instance of theHttpServerBuilder.toString()with(io.vertx.core.http.HttpServerConfig config) Configure the server.with(io.vertx.core.net.ServerSSLOptions options) Configure the server with the given SSLoptions.with(io.vertx.core.net.SSLEngineOptions engine) Configure the server with the given SSLengine.withConnectHandler(Consumer<HttpConnection> handler) Set a connection handler for the server.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
HttpServerBuilder
public HttpServerBuilder(io.vertx.core.http.HttpServerBuilder delegate) Create a new instance ofHttpServerBuilderdelegating to the given (non-null) instance ofHttpServerBuilder. -
HttpServerBuilder
-
-
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:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
with
Configure the server.- Parameters:
config- the server config- Returns:
- a reference to this, so the API can be used fluently
-
with
Configure the server with the given SSLoptions.- Parameters:
options- the SSL options- Returns:
- a reference to this, so the API can be used fluently
-
with
Configure the server with the given SSLengine.- Parameters:
engine- the SSL engine options- Returns:
- a reference to this, so the API can be used fluently
-
withConnectHandler
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
Build and return the server.- Returns:
- the server as configured by this builder
-
newInstance
Creates a new instance of theHttpServerBuilder. -
hashCode
public int hashCode() -
equals
-
toString
-