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
Fields Modifier and Type Field Description protected io.undertow.websockets.EndpointSessionHandlercallbackprotected io.undertow.websockets.ServerWebSocketContainercontainerprotected Executorexecutorprotected io.undertow.websockets.util.WebsocketPathMatcher<io.undertow.websockets.ServerWebSocketContainer.WebSocketHandshakeHolder>pathTemplateMatcherprotected static StringSESSION_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description VertxWebSocketHandler(io.undertow.websockets.ServerWebSocketContainer container, io.undertow.websockets.WebSocketDeploymentInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VertxWebSocketHttpExchangecreateHttpExchange(io.vertx.ext.web.RoutingContext event)voidhandle(io.vertx.ext.web.RoutingContext event)
-
-
-
Field Detail
-
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
protected final Executor executor
-
SESSION_ATTRIBUTE
protected static final String SESSION_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
handle
public void handle(io.vertx.ext.web.RoutingContext event)
- Specified by:
handlein interfaceio.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
-
createHttpExchange
protected VertxWebSocketHttpExchange createHttpExchange(io.vertx.ext.web.RoutingContext event)
-
-