Package | Description |
---|---|
io.vertx.rxjava.core | |
io.vertx.rxjava.core.http |
Modifier and Type | Method and Description |
---|---|
HttpServer |
Vertx.createHttpServer()
Create an HTTP/HTTPS server using default options
|
HttpServer |
Vertx.createHttpServer(HttpServerOptions options)
Create an HTTP/HTTPS server using the specified options
|
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<HttpServer> |
HttpServer.__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
HttpServer |
HttpServer.connectionHandler(Handler<HttpConnection> handler)
Set a connection handler for the server.
|
HttpServer |
HttpServer.exceptionHandler(Handler<Throwable> handler)
Set an exception handler called for socket errors happening before the HTTP connection
is established, e.g during the TLS handshake.
|
HttpServer |
HttpServer.listen()
Tell the server to start listening.
|
HttpServer |
HttpServer.listen(Handler<AsyncResult<HttpServer>> listenHandler)
Like
listen() but supplying a handler that will be called when the server is actually listening (or has failed). |
HttpServer |
HttpServer.listen(int port)
Like
listen() but the server will listen on host "0.0.0.0" and port specified here ignoring
any value in the HttpServerOptions that was used when creating the server. |
HttpServer |
HttpServer.listen(int port,
Handler<AsyncResult<HttpServer>> listenHandler)
Like
listen() but supplying a handler that will be called when the server is actually listening (or has failed). |
HttpServer |
HttpServer.listen(int port,
String host)
Tell the server to start listening.
|
HttpServer |
HttpServer.listen(int port,
String host,
Handler<AsyncResult<HttpServer>> listenHandler)
Like
listen() but supplying a handler that will be called when the server is actually
listening (or has failed). |
HttpServer |
HttpServer.listen(SocketAddress address,
Handler<AsyncResult<HttpServer>> 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).
|
static HttpServer |
HttpServer.newInstance(HttpServer arg) |
HttpServer |
HttpServer.requestHandler(Handler<HttpServerRequest> handler)
Set the request handler for the server to
requestHandler . |
HttpServer |
HttpServer.websocketHandler(Handler<ServerWebSocket> handler)
Deprecated.
|
HttpServer |
HttpServer.webSocketHandler(Handler<ServerWebSocket> handler)
Set the WebSocket handler for the server to
wsHandler . |
Modifier and Type | Method and Description |
---|---|
Observable<HttpServer> |
HttpServer.listenObservable()
Deprecated.
use
rxListen(int, java.lang.String) instead |
Observable<HttpServer> |
HttpServer.listenObservable(int port)
Deprecated.
use
rxListen(int, java.lang.String) instead |
Observable<HttpServer> |
HttpServer.listenObservable(int port,
String host)
Deprecated.
use
rxListen(int, java.lang.String) instead |
Observable<HttpServer> |
HttpServer.listenObservable(SocketAddress address)
Deprecated.
use
rxListen(int, java.lang.String) instead |
Single<HttpServer> |
HttpServer.rxListen()
Like
listen() but supplying a handler that will be called when the server is actually listening (or has failed). |
Single<HttpServer> |
HttpServer.rxListen(int port)
Like
listen() but supplying a handler that will be called when the server is actually listening (or has failed). |
Single<HttpServer> |
HttpServer.rxListen(int port,
String host)
Like
listen() but supplying a handler that will be called when the server is actually
listening (or has failed). |
Single<HttpServer> |
HttpServer.rxListen(SocketAddress address)
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).
|
Modifier and Type | Method and Description |
---|---|
HttpServer |
HttpServer.listen(Handler<AsyncResult<HttpServer>> listenHandler)
Like
listen() but supplying a handler that will be called when the server is actually listening (or has failed). |
HttpServer |
HttpServer.listen(int port,
Handler<AsyncResult<HttpServer>> listenHandler)
Like
listen() but supplying a handler that will be called when the server is actually listening (or has failed). |
HttpServer |
HttpServer.listen(int port,
String host,
Handler<AsyncResult<HttpServer>> listenHandler)
Like
listen() but supplying a handler that will be called when the server is actually
listening (or has failed). |
HttpServer |
HttpServer.listen(SocketAddress address,
Handler<AsyncResult<HttpServer>> 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).
|
Copyright © 2023 Eclipse. All rights reserved.