Class 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 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
    • Constructor Detail

      • VertxWebSocketHandler

        public VertxWebSocketHandler​(io.undertow.websockets.ServerWebSocketContainer container,
                                     io.undertow.websockets.WebSocketDeploymentInfo info)
    • Method Detail

      • handle

        public void handle​(io.vertx.ext.web.RoutingContext event)
        Specified by:
        handle in interface io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>