Class SockJSHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.sockjs.SockJSHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>
,Consumer<RoutingContext>
public class SockJSHandler extends Object implements io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
A handler that allows you to handle SockJS connections from clients.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 Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<SockJSHandler>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description SockJSHandler(io.vertx.ext.web.handler.sockjs.SockJSHandler delegate)
SockJSHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
accept(RoutingContext item)
Router
bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions)
Router
bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions, Consumer<BridgeEvent> bridgeEventHandler)
Router
bridge(AuthorizationProvider authorizationProvider, io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions, Consumer<BridgeEvent> bridgeEventHandler)
static SockJSHandler
create(Vertx vertx)
static SockJSHandler
create(Vertx vertx, io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions options)
boolean
equals(Object o)
io.vertx.ext.web.handler.sockjs.SockJSHandler
getDelegate()
void
handle(RoutingContext routingContext)
Deprecated.mount the router as a sub-router instead.int
hashCode()
static SockJSHandler
newInstance(io.vertx.ext.web.handler.sockjs.SockJSHandler arg)
Router
socketHandler(Consumer<SockJSSocket> handler)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<SockJSHandler> __TYPE_ARG
-
-
Constructor Detail
-
SockJSHandler
public SockJSHandler(io.vertx.ext.web.handler.sockjs.SockJSHandler delegate)
-
SockJSHandler
public SockJSHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.sockjs.SockJSHandler getDelegate()
-
create
public static SockJSHandler create(Vertx vertx)
- Parameters:
vertx
- the Vert.x instance- Returns:
- the handler
-
create
public static SockJSHandler create(Vertx vertx, io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions options)
- Parameters:
vertx
- the Vert.x instanceoptions
- options to configure the handler- Returns:
- the handler
-
socketHandler
public Router socketHandler(Consumer<SockJSSocket> handler)
- Parameters:
handler
- the handler- Returns:
-
bridge
public Router bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions)
- Parameters:
bridgeOptions
- options to configure the bridge with- Returns:
- a router to be mounted on an existing router
-
bridge
public Router bridge(AuthorizationProvider authorizationProvider, io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions, Consumer<BridgeEvent> bridgeEventHandler)
- Parameters:
authorizationProvider
- authorization provider to be used on the bridgebridgeOptions
- options to configure the bridge withbridgeEventHandler
- handler to receive bridge events- Returns:
-
bridge
public Router bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions, Consumer<BridgeEvent> bridgeEventHandler)
- Parameters:
bridgeOptions
- options to configure the bridge withbridgeEventHandler
- handler to receive bridge events- Returns:
-
handle
@Deprecated public void handle(RoutingContext routingContext)
Deprecated.mount the router as a sub-router instead. This method will not properly handle errors.- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
- Parameters:
routingContext
- the rounting context
-
accept
public void accept(RoutingContext item)
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
public static SockJSHandler newInstance(io.vertx.ext.web.handler.sockjs.SockJSHandler arg)
-
-