public class WebSocketProtocolHandshakeHandler extends Object implements HttpHandler
HttpHandler which will process the HttpServerExchange and do the actual handshake/upgrade
to WebSocket.| Constructor and Description |
|---|
WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes,
WebSocketConnectionCallback callback)
Create a new
WebSocketProtocolHandshakeHandler |
WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes,
WebSocketConnectionCallback callback,
HttpHandler next)
Create a new
WebSocketProtocolHandshakeHandler |
WebSocketProtocolHandshakeHandler(WebSocketConnectionCallback callback)
Create a new
WebSocketProtocolHandshakeHandler |
WebSocketProtocolHandshakeHandler(WebSocketConnectionCallback callback,
HttpHandler next)
Create a new
WebSocketProtocolHandshakeHandler |
public WebSocketProtocolHandshakeHandler(WebSocketConnectionCallback callback)
WebSocketProtocolHandshakeHandlercallback - The WebSocketConnectionCallback which will be executed once the handshake was
establishedpublic WebSocketProtocolHandshakeHandler(WebSocketConnectionCallback callback, HttpHandler next)
WebSocketProtocolHandshakeHandlercallback - The WebSocketConnectionCallback which will be executed once the handshake was
establishedpublic WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes, WebSocketConnectionCallback callback)
WebSocketProtocolHandshakeHandlerhandshakes - The supported handshake methodscallback - The WebSocketConnectionCallback which will be executed once the handshake was
establishedpublic WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes, WebSocketConnectionCallback callback, HttpHandler next)
WebSocketProtocolHandshakeHandlerhandshakes - The supported handshake methodscallback - The WebSocketConnectionCallback which will be executed once the handshake was
establishedpublic void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.