Package | Description |
---|---|
io.vertx.ext.web | |
io.vertx.ext.web.handler.sockjs |
Modifier and Type | Method and Description |
---|---|
Router |
Router.clear()
Remove all the routes from this router
|
Router |
Router.errorHandler(int statusCode,
io.vertx.core.Handler<RoutingContext> errorHandler)
Specify an handler to handle an error for a particular status code.
|
Router |
Router.exceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler)
Deprecated.
you should use
errorHandler(int, Handler) with 500 status code |
Router |
Router.modifiedHandler(io.vertx.core.Handler<Router> handler)
When a Router routes are changed this handler is notified.
|
Router |
Router.mountSubRouter(String mountPoint,
Router subRouter)
Mount a sub router on this router
|
static Router |
Router.router(io.vertx.core.Vertx vertx)
Create a router
|
Modifier and Type | Method and Description |
---|---|
Router |
Router.mountSubRouter(String mountPoint,
Router subRouter)
Mount a sub router on this router
|
Route |
Route.subRouter(Router subRouter)
Use a (sub)
Router as a handler. |
Modifier and Type | Method and Description |
---|---|
Router |
Router.modifiedHandler(io.vertx.core.Handler<Router> handler)
When a Router routes are changed this handler is notified.
|
Modifier and Type | Method and Description |
---|---|
Router |
SockJSHandler.bridge(BridgeOptions bridgeOptions)
Bridge the SockJS handler to the Vert.x event bus.
|
Router |
SockJSHandler.bridge(BridgeOptions bridgeOptions,
io.vertx.core.Handler<BridgeEvent> bridgeEventHandler)
Like
SockJSHandler.bridge(BridgeOptions) but specifying a handler
that will receive bridge events. |
Router |
SockJSHandler.socketHandler(io.vertx.core.Handler<SockJSSocket> handler)
Set a SockJS socket handler.
|
Copyright © 2019 Eclipse. All rights reserved.