Package io.undertow.websockets.impl

Examples of io.undertow.websockets.impl.WebSocketSessionConnectionCallback


    /**
     * @param sessionHandler The web socket session handler
     * @return The web socket handler
     */
    public static WebSocketProtocolHandshakeHandler websocket(final WebSocketSessionHandler sessionHandler) {
        return new WebSocketProtocolHandshakeHandler(new WebSocketSessionConnectionCallback(sessionHandler));
    }
View Full Code Here


     * @param sessionHandler The web socket session handler
     * @param next           The handler to invoke if the web socket connection fails
     * @return The web socket handler
     */
    public static WebSocketProtocolHandshakeHandler websocket(final WebSocketSessionHandler sessionHandler, final HttpHandler next) {
        return new WebSocketProtocolHandshakeHandler(new WebSocketSessionConnectionCallback(sessionHandler), next);
    }
View Full Code Here

    /**
     * @param sessionHandler The web socket session handler
     * @return The web socket handler
     */
    public static WebSocketProtocolHandshakeHandler websocket(final WebSocketSessionHandler sessionHandler) {
        return new WebSocketProtocolHandshakeHandler(new WebSocketSessionConnectionCallback(sessionHandler));
    }
View Full Code Here

     * @param sessionHandler The web socket session handler
     * @param next           The handler to invoke if the web socket connection fails
     * @return The web socket handler
     */
    public static WebSocketProtocolHandshakeHandler websocket(final WebSocketSessionHandler sessionHandler, final HttpHandler next) {
        return new WebSocketProtocolHandshakeHandler(new WebSocketSessionConnectionCallback(sessionHandler), next);
    }
View Full Code Here

            final String sessionHandler = config.getInitParameter(SESSION_HANDLER);
            if (sessionHandler != null) {
                final Class<?> clazz = Class.forName(sessionHandler, true, Thread.currentThread().getContextClassLoader());
                final Object handler = clazz.newInstance();
                if (handler instanceof WebSocketSessionHandler) {
                    this.callback = new WebSocketSessionConnectionCallback((WebSocketSessionHandler) handler);
                } else {
                    this.callback = (WebSocketConnectionCallback) handler;
                }
            }
            //TODO: set properties based on init params
View Full Code Here

            public int compare(final ConfiguredServerEndpoint o1, final ConfiguredServerEndpoint o2) {
                return o1.getPathTemplate().compareTo(o2.getPathTemplate());
            }
        });
        this.handshakes = handshakes(configuredServerEndpoints);
        this.callback = new WebSocketSessionConnectionCallback(new EndpointSessionHandler(container));
    }
View Full Code Here

            final String sessionHandler = config.getInitParameter(SESSION_HANDLER);
            if (sessionHandler != null) {
                final Class<?> clazz = Class.forName(sessionHandler, true, Thread.currentThread().getContextClassLoader());
                final Object handler = clazz.newInstance();
                if (handler instanceof WebSocketSessionHandler) {
                    this.callback = new WebSocketSessionConnectionCallback((WebSocketSessionHandler) handler);
                } else {
                    this.callback = (WebSocketConnectionCallback) handler;
                }
            }
            //TODO: set properties based on init params
View Full Code Here

            return this;
        }

        @Override
        public VirtualHost addWebSocketHandler(final String path, final WebSocketSessionHandler handler) {
            handlers.put(path, new WebSocketProtocolHandshakeHandler(new WebSocketSessionConnectionCallback(handler)));
            return this;
        }
View Full Code Here

            public int compare(final ConfiguredServerEndpoint o1, final ConfiguredServerEndpoint o2) {
                return o1.getPathTemplate().compareTo(o2.getPathTemplate());
            }
        });
        this.handshakes = handshakes(configuredServerEndpoints);
        this.callback = new WebSocketSessionConnectionCallback(new EndpointSessionHandler(container));
    }
View Full Code Here

TOP

Related Classes of io.undertow.websockets.impl.WebSocketSessionConnectionCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.