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 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

      protected final Executor executor
    • SESSION_ATTRIBUTE

      protected static final String 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:
      handle in interface io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
    • createHttpExchange

      protected VertxWebSocketHttpExchange createHttpExchange(io.vertx.ext.web.RoutingContext event)