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(Object delegate) |
SockJSHandler(io.vertx.ext.web.handler.sockjs.SockJSHandler delegate) |
Modifier and Type | Method and Description |
---|---|
Router |
bridge(AuthorizationProvider authorizationProvider,
io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions,
io.vertx.core.Handler<BridgeEvent> bridgeEventHandler)
Like
bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions) but specifying a handler
that will receive bridge events. |
Router |
bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions)
Bridge the SockJS handler to the Vert.x event bus.
|
Router |
bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions,
io.vertx.core.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,
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 routingContext)
Deprecated.
|
int |
hashCode() |
static SockJSHandler |
newInstance(io.vertx.ext.web.handler.sockjs.SockJSHandler arg) |
Router |
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 SockJSHandler(Object delegate)
public io.vertx.ext.web.handler.sockjs.SockJSHandler getDelegate()
public 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 Router socketHandler(io.vertx.core.Handler<SockJSSocket> handler)
handler
- the handlerpublic Router bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions)
bridgeOptions
- options to configure the bridge withpublic Router bridge(AuthorizationProvider authorizationProvider, io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions, io.vertx.core.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(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions, io.vertx.core.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)
handle
in interface io.vertx.core.Handler<RoutingContext>
routingContext
- the rounting contextpublic static SockJSHandler newInstance(io.vertx.ext.web.handler.sockjs.SockJSHandler arg)
Copyright © 2021 Eclipse. All rights reserved.