public interface HandshakeHandler
HandshakeInterceptor,
WebSocketHttpRequestHandler,
SockJsService| Modifier and Type | Method and Description |
|---|---|
boolean |
doHandshake(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler wsHandler,
Map<String,Object> attributes)
Initiate the handshake.
|
boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String,Object> attributes) throws HandshakeFailureException
request - the current requestresponse - the current responsewsHandler - the handler to process WebSocket messages; see
PerConnectionWebSocketHandler for providing a handler with
per-connection lifecycle.attributes - handshake request specific attributes to be set on the WebSocket
session via HandshakeInterceptor and thus made available to the
WebSocketHandler;HandshakeFailureException - 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 handshake.