Java io.vertx.core.http HttpServer fields, constructors, methods, implement or subclass

Example usage for Java io.vertx.core.http HttpServer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.vertx.core.http HttpServer.

The text is from its open source code.

Method

intactualPort()
The actual port the server is listening on.
Futureclose()
Close the server.
HttpServerconnectionHandler(Handler handler)
Set a connection handler for the server.
HttpServerexceptionHandler(Handler handler)
Set an exception handler called for socket errors happening before the HTTP connection is established, e.g during the TLS handshake.
Futurelisten(int port, String host)
Tell the server to start listening.
HttpServerlisten(SocketAddress address, Handler> listenHandler)
Tell the server to start listening on the given address supplying a handler that will be called when the server is actually listening (or has failed).
HttpServerlisten(int port, Handler> listenHandler)
Like #listen(int) but supplying a handler that will be called when the server is actually listening (or has failed).
Futurelisten(SocketAddress address)
Like #listen(SocketAddress,Handler) but returns a Future of the asynchronous result
Futurelisten(int port)
Like #listen(int,String) but the server will listen on host "0.0.0.0" and port specified here ignoring any value in the io.vertx.core.http.HttpServerOptions that was used when creating the server.
HttpServerlisten(Handler> listenHandler)
Like #listen but supplying a handler that will be called when the server is actually listening (or has failed).
Futurelisten()
Tell the server to start listening.
HttpServerlisten(int port, String host, Handler> listenHandler)
Like #listen(int,String) but supplying a handler that will be called when the server is actually listening (or has failed).
HttpServerrequestHandler(Handler handler)
Set the request handler for the server to requestHandler .
HttpServerwebsocketHandler(Handler handler)
Set the websocket handler for the server to wsHandler .