public class SockJSHandlerImpl extends Object implements SockJSHandler
| Constructor and Description |
|---|
SockJSHandlerImpl(Vertx vertx,
SockJSHandlerOptions options) |
| Modifier and Type | Method and Description |
|---|---|
Router |
bridge(BridgeOptions bridgeOptions)
Bridge the SockJS handler to the Vert.x event bus.
|
Router |
bridge(BridgeOptions bridgeOptions,
Handler<BridgeEvent> bridgeEventHandler)
Like
SockJSHandler.bridge(BridgeOptions) but specifying a handler
that will receive bridge events. |
void |
handle(RoutingContext context)
Deprecated.
|
Router |
socketHandler(Handler<SockJSSocket> sockHandler)
Set a SockJS socket handler.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createpublic SockJSHandlerImpl(Vertx vertx, SockJSHandlerOptions options)
@Deprecated public void handle(RoutingContext context)
Handlerhandle in interface Handler<RoutingContext>handle in interface SockJSHandlercontext - the rounting contextpublic Router bridge(BridgeOptions bridgeOptions)
SockJSHandlerbridge in interface SockJSHandlerbridgeOptions - options to configure the bridge withpublic Router bridge(BridgeOptions bridgeOptions, Handler<BridgeEvent> bridgeEventHandler)
SockJSHandlerSockJSHandler.bridge(BridgeOptions) but specifying a handler
that will receive bridge events.bridge in interface SockJSHandlerbridgeOptions - options to configure the bridge withbridgeEventHandler - handler to receive bridge eventspublic Router socketHandler(Handler<SockJSSocket> sockHandler)
SockJSHandlersocketHandler in interface SockJSHandlersockHandler - the handlerCopyright © 2020. All rights reserved.