public interface HandshakeHandler
WebSocketHttpRequestHandler
Modifier and Type | Method and Description |
---|---|
boolean |
doHandshake(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler webSocketHandler)
Initiate the handshake.
|
boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler webSocketHandler) throws java.io.IOException, HandshakeFailureException
request
- the current requestresponse
- the current responsewebSocketHandler
- the handler to process WebSocket messages; see
PerConnectionWebSocketHandler
for providing a handler with
per-connection lifecycle.java.io.IOException
- thrown when accessing or setting the responseHandshakeFailureException
- thrown when handshake processing failed to
complete due to an internal, unrecoverable error, i.e. a server error as
opposed to a failure to successfully negotiate the requirements of the
handshake request.