Package io.undertow.websockets.vertx
Class VertxWebSocketHandler
java.lang.Object
io.undertow.websockets.vertx.VertxWebSocketHandler
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
public class VertxWebSocketHandler
extends Object
implements io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
Filter that provides HTTP upgrade functionality. This should be run after all user filters, but before any servlets.
The use of a filter rather than a servlet allows for normal HTTP requests to be served from the same location as a web socket endpoint if no upgrade header is found.
- Author:
- Stuart Douglas
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.undertow.websockets.EndpointSessionHandlerprotected final io.undertow.websockets.ServerWebSocketContainerprotected final Executorprotected final io.undertow.websockets.util.WebsocketPathMatcher<io.undertow.websockets.ServerWebSocketContainer.WebSocketHandshakeHolder>protected static final String -
Constructor Summary
ConstructorsConstructorDescriptionVertxWebSocketHandler(io.undertow.websockets.ServerWebSocketContainer container, io.undertow.websockets.WebSocketDeploymentInfo info) -
Method Summary
Modifier and TypeMethodDescriptionprotected VertxWebSocketHttpExchangecreateHttpExchange(io.vertx.ext.web.RoutingContext event) voidhandle(io.vertx.ext.web.RoutingContext event)
-
Field Details
-
callback
protected final io.undertow.websockets.EndpointSessionHandler callback -
pathTemplateMatcher
protected final io.undertow.websockets.util.WebsocketPathMatcher<io.undertow.websockets.ServerWebSocketContainer.WebSocketHandshakeHolder> pathTemplateMatcher -
container
protected final io.undertow.websockets.ServerWebSocketContainer container -
executor
-
SESSION_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
VertxWebSocketHandler
public VertxWebSocketHandler(io.undertow.websockets.ServerWebSocketContainer container, io.undertow.websockets.WebSocketDeploymentInfo info)
-
-
Method Details
-
handle
public void handle(io.vertx.ext.web.RoutingContext event) - Specified by:
handlein interfaceio.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
-
createHttpExchange
-