use of io.undertow.websockets.jsr.handshake.JsrHybi07Handshake 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);
}
use of io.undertow.websockets.jsr.handshake.JsrHybi07Handshake 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;
}
use of io.undertow.websockets.jsr.handshake.JsrHybi07Handshake 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);
}
Aggregations