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(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
|
boolean |
equals(Object o) |
SockJSHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static SockJSHandler |
newInstance(SockJSHandler arg) |
SockJSHandler |
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 getDelegate()
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
event
- 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 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 © 2018 Eclipse. All rights reserved.