Search in sources :

Example 1 with JsrHybi08Handshake

use of io.undertow.websockets.jsr.handshake.JsrHybi08Handshake in project undertow by undertow-io.

the class ServerWebSocketContainer method handshakes.

static WebSocketHandshakeHolder handshakes(ConfiguredServerEndpoint config, List<ExtensionHandshake> extensions) {
    List<Handshake> handshakes = new ArrayList<>();
    Handshake jsrHybi13Handshake = new JsrHybi13Handshake(config);
    Handshake jsrHybi08Handshake = new JsrHybi08Handshake(config);
    Handshake jsrHybi07Handshake = new JsrHybi07Handshake(config);
    for (ExtensionHandshake extension : extensions) {
        jsrHybi13Handshake.addExtension(extension);
        jsrHybi08Handshake.addExtension(extension);
        jsrHybi07Handshake.addExtension(extension);
    }
    handshakes.add(jsrHybi13Handshake);
    handshakes.add(jsrHybi08Handshake);
    handshakes.add(jsrHybi07Handshake);
    return new WebSocketHandshakeHolder(handshakes, config);
}
Also used : JsrHybi07Handshake(io.undertow.websockets.jsr.handshake.JsrHybi07Handshake) JsrHybi08Handshake(io.undertow.websockets.jsr.handshake.JsrHybi08Handshake) ArrayList(java.util.ArrayList) ExtensionHandshake(io.undertow.websockets.extensions.ExtensionHandshake) JsrHybi13Handshake(io.undertow.websockets.jsr.handshake.JsrHybi13Handshake) ExtensionHandshake(io.undertow.websockets.extensions.ExtensionHandshake) JsrHybi13Handshake(io.undertow.websockets.jsr.handshake.JsrHybi13Handshake) JsrHybi08Handshake(io.undertow.websockets.jsr.handshake.JsrHybi08Handshake) Handshake(io.undertow.websockets.core.protocol.Handshake) JsrHybi07Handshake(io.undertow.websockets.jsr.handshake.JsrHybi07Handshake)

Example 2 with JsrHybi08Handshake

use of io.undertow.websockets.jsr.handshake.JsrHybi08Handshake in project undertow by undertow-io.

the class JsrWebSocketProtocolHandshakeHandler method handshakes.

private static Set<Handshake> handshakes(ConfiguredServerEndpoint... configs) {
    Set<Handshake> handshakes = new HashSet<>();
    for (ConfiguredServerEndpoint config : configs) {
        handshakes.add(new JsrHybi07Handshake(config));
        handshakes.add(new JsrHybi08Handshake(config));
        handshakes.add(new JsrHybi13Handshake(config));
    }
    return handshakes;
}
Also used : JsrHybi07Handshake(io.undertow.websockets.jsr.handshake.JsrHybi07Handshake) JsrHybi08Handshake(io.undertow.websockets.jsr.handshake.JsrHybi08Handshake) JsrHybi13Handshake(io.undertow.websockets.jsr.handshake.JsrHybi13Handshake) Handshake(io.undertow.websockets.core.protocol.Handshake) JsrHybi07Handshake(io.undertow.websockets.jsr.handshake.JsrHybi07Handshake) JsrHybi13Handshake(io.undertow.websockets.jsr.handshake.JsrHybi13Handshake) JsrHybi08Handshake(io.undertow.websockets.jsr.handshake.JsrHybi08Handshake) HashSet(java.util.HashSet)

Example 3 with JsrHybi08Handshake

use of io.undertow.websockets.jsr.handshake.JsrHybi08Handshake in project undertow by undertow-io.

the class ServerWebSocketContainer method handshakes.

static WebSocketHandshakeHolder handshakes(ConfiguredServerEndpoint config) {
    List<Handshake> handshakes = new ArrayList<>();
    handshakes.add(new JsrHybi13Handshake(config));
    handshakes.add(new JsrHybi08Handshake(config));
    handshakes.add(new JsrHybi07Handshake(config));
    return new WebSocketHandshakeHolder(handshakes, config);
}
Also used : JsrHybi07Handshake(io.undertow.websockets.jsr.handshake.JsrHybi07Handshake) JsrHybi08Handshake(io.undertow.websockets.jsr.handshake.JsrHybi08Handshake) ArrayList(java.util.ArrayList) JsrHybi13Handshake(io.undertow.websockets.jsr.handshake.JsrHybi13Handshake) ExtensionHandshake(io.undertow.websockets.extensions.ExtensionHandshake) JsrHybi13Handshake(io.undertow.websockets.jsr.handshake.JsrHybi13Handshake) JsrHybi08Handshake(io.undertow.websockets.jsr.handshake.JsrHybi08Handshake) Handshake(io.undertow.websockets.core.protocol.Handshake) JsrHybi07Handshake(io.undertow.websockets.jsr.handshake.JsrHybi07Handshake)

Aggregations

Handshake (io.undertow.websockets.core.protocol.Handshake)3 JsrHybi07Handshake (io.undertow.websockets.jsr.handshake.JsrHybi07Handshake)3 JsrHybi08Handshake (io.undertow.websockets.jsr.handshake.JsrHybi08Handshake)3 JsrHybi13Handshake (io.undertow.websockets.jsr.handshake.JsrHybi13Handshake)3 ExtensionHandshake (io.undertow.websockets.extensions.ExtensionHandshake)2 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)1