public class WebSocketProtocolHandshakeHandler extends Object implements HttpHandler
HttpHandler
which will process the HttpServerExchange
and do the actual handshake/upgrade
to WebSocket.public WebSocketProtocolHandshakeHandler(WebSocketConnectionCallback callback)
WebSocketProtocolHandshakeHandler
callback
- The WebSocketConnectionCallback
which will be executed once the handshake was
establishedpublic WebSocketProtocolHandshakeHandler(WebSocketConnectionCallback callback, HttpHandler next)
WebSocketProtocolHandshakeHandler
callback
- The WebSocketConnectionCallback
which will be executed once the handshake was
establishedpublic WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes, WebSocketConnectionCallback callback)
WebSocketProtocolHandshakeHandler
handshakes
- The supported handshake methodscallback
- The WebSocketConnectionCallback
which will be executed once the handshake was
establishedpublic WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes, WebSocketConnectionCallback callback, HttpHandler next)
WebSocketProtocolHandshakeHandler
handshakes
- The supported handshake methodscallback
- The WebSocketConnectionCallback
which will be executed once the handshake was
establishedpublic WebSocketProtocolHandshakeHandler(HttpUpgradeListener callback)
WebSocketProtocolHandshakeHandler
callback
- The WebSocketConnectionCallback
which will be executed once the handshake was
establishedpublic WebSocketProtocolHandshakeHandler(HttpUpgradeListener callback, HttpHandler next)
WebSocketProtocolHandshakeHandler
callback
- The WebSocketConnectionCallback
which will be executed once the handshake was
establishedpublic WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes, HttpUpgradeListener callback)
WebSocketProtocolHandshakeHandler
handshakes
- The supported handshake methodscallback
- The WebSocketConnectionCallback
which will be executed once the handshake was
establishedpublic WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes, HttpUpgradeListener callback, HttpHandler next)
WebSocketProtocolHandshakeHandler
handshakes
- The supported handshake methodscallback
- The WebSocketConnectionCallback
which will be executed once the handshake was
establishedpublic void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
Copyright © 2014 JBoss by Red Hat. All rights reserved.