io.undertow.websockets.core.protocol.version07.Hybi07Handshake Java Examples
The following examples show how to use
io.undertow.websockets.core.protocol.version07.Hybi07Handshake.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebSocketProtocolHandshakeHandler.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Create a new {@link WebSocketProtocolHandshakeHandler} * * @param callback The {@link WebSocketConnectionCallback} which will be executed once the handshake was * established */ public WebSocketProtocolHandshakeHandler(final WebSocketConnectionCallback callback, final HttpHandler next) { this.callback = callback; Set<Handshake> handshakes = new HashSet<>(); handshakes.add(new Hybi13Handshake()); handshakes.add(new Hybi08Handshake()); handshakes.add(new Hybi07Handshake()); this.handshakes = handshakes; this.next = next; this.upgradeListener = null; }
Example #2
Source File: WebSocketProtocolHandshakeHandler.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Create a new {@link WebSocketProtocolHandshakeHandler} * * @param callback The {@link WebSocketConnectionCallback} which will be executed once the handshake was * established */ public WebSocketProtocolHandshakeHandler(final HttpUpgradeListener callback, final HttpHandler next) { this.callback = null; Set<Handshake> handshakes = new HashSet<>(); handshakes.add(new Hybi13Handshake()); handshakes.add(new Hybi08Handshake()); handshakes.add(new Hybi07Handshake()); this.handshakes = handshakes; this.next = next; this.upgradeListener = callback; }
Example #3
Source File: AtmosphereWebSocketUndertowDestination.java From cxf with Apache License 2.0 | 5 votes |
AtmosphereUndertowWebSocketHandler(UndertowHTTPDestination jhd, boolean cmExact) { super(jhd, cmExact); handshakes = new HashSet<>(); handshakes.add(new Hybi13Handshake()); handshakes.add(new Hybi08Handshake()); handshakes.add(new Hybi07Handshake()); }
Example #4
Source File: UndertowWebSocketDestination.java From cxf with Apache License 2.0 | 5 votes |
AtmosphereUndertowWebSocketHandler(UndertowHTTPDestination jhd, boolean cmExact) { super(jhd, cmExact); handshakes = new HashSet<>(); handshakes.add(new Hybi13Handshake()); handshakes.add(new Hybi08Handshake()); handshakes.add(new Hybi07Handshake()); }
Example #5
Source File: UndertowWebSocketFilter.java From pippo with Apache License 2.0 | 5 votes |
@Override public void init(FilterConfig filterConfig) throws ServletException { super.init(filterConfig); peerConnections = Collections.newSetFromMap(new ConcurrentHashMap<WebSocketChannel, Boolean>()); handshakes = new HashSet<>(); handshakes.add(new Hybi13Handshake()); handshakes.add(new Hybi08Handshake()); handshakes.add(new Hybi07Handshake()); }