public interface SockJSHandler extends io.vertx.core.Handler<RoutingContext>
We currently support version 0.3.3 of the SockJS protocol, which can be found in this tag:
Modifier and Type | Method and Description |
---|---|
Router |
bridge(io.vertx.ext.auth.authorization.AuthorizationProvider authorizationProvider,
SockJSBridgeOptions bridgeOptions,
io.vertx.core.Handler<BridgeEvent> bridgeEventHandler)
Like
bridge(SockJSBridgeOptions) but specifying a handler
that will receive bridge events. |
default Router |
bridge(SockJSBridgeOptions bridgeOptions)
Bridge the SockJS handler to the Vert.x event bus.
|
default Router |
bridge(SockJSBridgeOptions bridgeOptions,
io.vertx.core.Handler<BridgeEvent> bridgeEventHandler)
Like
bridge(SockJSBridgeOptions) but specifying a handler
that will receive bridge events. |
static SockJSHandler |
create(io.vertx.core.Vertx vertx)
Create a SockJS handler
|
static SockJSHandler |
create(io.vertx.core.Vertx vertx,
SockJSHandlerOptions options)
Create a SockJS handler
|
void |
handle(RoutingContext routingContext)
Deprecated.
mount the router as a sub-router instead. This method will not properly handle errors.
|
Router |
socketHandler(io.vertx.core.Handler<SockJSSocket> handler)
Set a SockJS socket handler.
|
static SockJSHandler create(io.vertx.core.Vertx vertx)
vertx
- the Vert.x instancestatic SockJSHandler create(io.vertx.core.Vertx vertx, SockJSHandlerOptions options)
vertx
- the Vert.x instanceoptions
- options to configure the handlerRouter socketHandler(io.vertx.core.Handler<SockJSSocket> handler)
handler
- the handlerdefault Router bridge(SockJSBridgeOptions bridgeOptions)
bridgeOptions
- options to configure the bridge withRouter bridge(io.vertx.ext.auth.authorization.AuthorizationProvider authorizationProvider, SockJSBridgeOptions bridgeOptions, io.vertx.core.Handler<BridgeEvent> bridgeEventHandler)
bridge(SockJSBridgeOptions)
but specifying a handler
that will receive bridge events.authorizationProvider
- authorization provider to be used on the bridgebridgeOptions
- options to configure the bridge withbridgeEventHandler
- handler to receive bridge eventsdefault Router bridge(SockJSBridgeOptions bridgeOptions, io.vertx.core.Handler<BridgeEvent> bridgeEventHandler)
bridge(SockJSBridgeOptions)
but specifying a handler
that will receive bridge events.bridgeOptions
- options to configure the bridge withbridgeEventHandler
- handler to receive bridge events@Deprecated void handle(RoutingContext routingContext)
handle
in interface io.vertx.core.Handler<RoutingContext>
routingContext
- the rounting contextCopyright © 2020 Eclipse. All rights reserved.