public interface SockJSHandler extends 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(AuthorizationProvider authorizationProvider,
SockJSBridgeOptions bridgeOptions,
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,
Handler<BridgeEvent> bridgeEventHandler)
Like
bridge(SockJSBridgeOptions) but specifying a handler
that will receive bridge events. |
static SockJSHandler |
create(Vertx vertx)
Create a SockJS handler
|
static SockJSHandler |
create(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(Handler<SockJSSocket> handler)
Set a SockJS socket handler.
|
static SockJSHandler create(Vertx vertx)
vertx
- the Vert.x instancestatic SockJSHandler create(Vertx vertx, SockJSHandlerOptions options)
vertx
- the Vert.x instanceoptions
- options to configure the handlerRouter socketHandler(Handler<SockJSSocket> handler)
handler
- the handlerdefault Router bridge(SockJSBridgeOptions bridgeOptions)
bridgeOptions
- options to configure the bridge withRouter bridge(AuthorizationProvider authorizationProvider, SockJSBridgeOptions bridgeOptions, 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, 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)
Handler
handle
in interface Handler<RoutingContext>
routingContext
- the rounting contextCopyright © 2021 Eclipse. All rights reserved.