public class SockJSHandler extends Object implements io.vertx.core.Handler<RoutingContext>
We currently support version 0.3.3 of the SockJS protocol, which can be found in this tag:
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<SockJSHandler> |
__TYPE_ARG |
Constructor and Description |
---|
SockJSHandler(io.vertx.ext.web.handler.sockjs.SockJSHandler delegate) |
Modifier and Type | Method and Description |
---|---|
SockJSHandler |
bridge(io.vertx.ext.web.handler.sockjs.BridgeOptions bridgeOptions)
Bridge the SockJS handler to the Vert.x event bus.
|
SockJSHandler |
bridge(io.vertx.ext.web.handler.sockjs.BridgeOptions bridgeOptions,
io.vertx.core.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,
io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions options)
Create a SockJS handler
|
boolean |
equals(Object o) |
io.vertx.ext.web.handler.sockjs.SockJSHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static SockJSHandler |
newInstance(io.vertx.ext.web.handler.sockjs.SockJSHandler arg) |
SockJSHandler |
socketHandler(io.vertx.core.Handler<SockJSSocket> handler)
Set a SockJS socket handler.
|
String |
toString() |
public static final TypeArg<SockJSHandler> __TYPE_ARG
public SockJSHandler(io.vertx.ext.web.handler.sockjs.SockJSHandler delegate)
public io.vertx.ext.web.handler.sockjs.SockJSHandler getDelegate()
public void handle(RoutingContext event)
handle
in interface io.vertx.core.Handler<RoutingContext>
event
- the event to handlepublic static SockJSHandler create(Vertx vertx)
vertx
- the Vert.x instancepublic static SockJSHandler create(Vertx vertx, io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions options)
vertx
- the Vert.x instanceoptions
- options to configure the handlerpublic SockJSHandler socketHandler(io.vertx.core.Handler<SockJSSocket> handler)
handler
- the handlerpublic SockJSHandler bridge(io.vertx.ext.web.handler.sockjs.BridgeOptions bridgeOptions)
bridgeOptions
- options to configure the bridge withpublic SockJSHandler bridge(io.vertx.ext.web.handler.sockjs.BridgeOptions bridgeOptions, io.vertx.core.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(io.vertx.ext.web.handler.sockjs.SockJSHandler arg)
Copyright © 2019 Eclipse. All rights reserved.