public class SockJSHandler extends Object implements Handler<RoutingContext>
| Constructor and Description |
|---|
SockJSHandler(SockJSHandler delegate) |
| Modifier and Type | Method and Description |
|---|---|
SockJSHandler |
bridge(BridgeOptions bridgeOptions)
Bridge the SockJS handler to the Vert.x event bus.
|
SockJSHandler |
bridge(BridgeOptions bridgeOptions,
Handler<BridgeEvent> bridgeEventHandler)
Like
bridge(io.vertx.ext.web.handler.sockjs.BridgeOptions) 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
|
Object |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static void |
installTestApplications(Router router,
Vertx vertx)
Install SockJS test applications on a router - used when running the SockJS test suite
|
static SockJSHandler |
newInstance(SockJSHandler arg) |
SockJSHandler |
socketHandler(Handler<SockJSSocket> handler)
Set a SockJS socket handler.
|
public SockJSHandler(SockJSHandler delegate)
public Object getDelegate()
public void handle(RoutingContext arg0)
Handlerhandle in interface Handler<RoutingContext>arg0 - the event to handlepublic 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 static void installTestApplications(Router router, Vertx vertx)
router - the router to install onvertx - the Vert.x instancepublic SockJSHandler socketHandler(Handler<SockJSSocket> handler)
handler - the handlerpublic SockJSHandler bridge(BridgeOptions bridgeOptions)
bridgeOptions - options to configure the bridge withpublic SockJSHandler bridge(BridgeOptions bridgeOptions, Handler<BridgeEvent> bridgeEventHandler)
bridge(io.vertx.ext.web.handler.sockjs.BridgeOptions) but specifying a handler
that will receive bridge events.bridgeOptions - options to configure the bridge withbridgeEventHandler - handler to receive bridge eventspublic static SockJSHandler newInstance(SockJSHandler arg)
Copyright © 2015. All rights reserved.