public class SockJSHandler extends Object implements Handler<RoutingContext>
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<SockJSHandler> |
__TYPE_ARG |
Constructor and Description |
---|
SockJSHandler(Object delegate) |
SockJSHandler(SockJSHandler delegate) |
Modifier and Type | Method and Description |
---|---|
Router |
bridge(AuthorizationProvider authorizationProvider,
SockJSBridgeOptions bridgeOptions,
Handler<BridgeEvent> bridgeEventHandler)
Like
bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions) but specifying a handler
that will receive bridge events. |
Router |
bridge(SockJSBridgeOptions bridgeOptions)
Bridge the SockJS handler to the Vert.x event bus.
|
Router |
bridge(SockJSBridgeOptions bridgeOptions,
Handler<BridgeEvent> bridgeEventHandler)
Like
bridge(io.vertx.ext.web.handler.sockjs.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
|
boolean |
equals(Object o) |
SockJSHandler |
getDelegate() |
void |
handle(RoutingContext routingContext)
Deprecated.
|
int |
hashCode() |
static SockJSHandler |
newInstance(SockJSHandler arg) |
Router |
socketHandler(Handler<SockJSSocket> handler)
Set a SockJS socket handler.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<SockJSHandler> __TYPE_ARG
public SockJSHandler(SockJSHandler delegate)
public SockJSHandler(Object delegate)
public SockJSHandler getDelegate()
public static SockJSHandler create(Vertx vertx)
vertx
- the Vert.x instancepublic static SockJSHandler create(Vertx vertx, SockJSHandlerOptions options)
vertx
- the Vert.x instanceoptions
- options to configure the handlerpublic Router socketHandler(Handler<SockJSSocket> handler)
handler
- the handlerpublic Router bridge(SockJSBridgeOptions bridgeOptions)
bridgeOptions
- options to configure the bridge withpublic Router bridge(AuthorizationProvider authorizationProvider, SockJSBridgeOptions bridgeOptions, Handler<BridgeEvent> bridgeEventHandler)
bridge(io.vertx.ext.web.handler.sockjs.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 eventspublic Router bridge(SockJSBridgeOptions bridgeOptions, Handler<BridgeEvent> bridgeEventHandler)
bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions)
but specifying a handler
that will receive bridge events.bridgeOptions
- options to configure the bridge withbridgeEventHandler
- handler to receive bridge events@Deprecated public void handle(RoutingContext routingContext)
Handler
handle
in interface Handler<RoutingContext>
routingContext
- the routing contextpublic static SockJSHandler newInstance(SockJSHandler arg)
Copyright © 2023 Eclipse. All rights reserved.