Class SockJSHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.sockjs.SockJSHandler
- All Implemented Interfaces:
MutinyDelegate,io.vertx.core.Handler<RoutingContext>,Consumer<RoutingContext>
public class SockJSHandler
extends Object
implements MutinyDelegate, 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 -
Constructor Summary
ConstructorsConstructorDescriptionSockJSHandler(io.vertx.ext.web.handler.sockjs.SockJSHandler delegate) SockJSHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions) bridge(io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions, Consumer<BridgeEvent> bridgeEventHandler) bridge(AuthorizationProvider authorizationProvider, io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions bridgeOptions, Consumer<BridgeEvent> bridgeEventHandler) static SockJSHandlerstatic SockJSHandlerbooleanio.vertx.ext.web.handler.sockjs.SockJSHandlervoidhandle(RoutingContext routingContext) Deprecated.mount the router as a sub-router instead.inthashCode()static SockJSHandlernewInstance(io.vertx.ext.web.handler.sockjs.SockJSHandler arg) socketHandler(Consumer<SockJSSocket> handler) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
SockJSHandler
public SockJSHandler(io.vertx.ext.web.handler.sockjs.SockJSHandler delegate) -
SockJSHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.sockjs.SockJSHandler getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
create
- 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
- Parameters:
handler- the handler- Returns:
-
bridge
- 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.mount the router as a sub-router instead. This method will not properly handle errors.- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Parameters:
routingContext- the routing context
-
accept
- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
-