public interface HandshakeInterceptor
WebSocketHandler.WebSocketHttpRequestHandler,
DefaultSockJsService| Modifier and Type | Method and Description |
|---|---|
void |
afterHandshake(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler wsHandler,
java.lang.Exception exception)
Invoked after the handshake is done.
|
boolean |
beforeHandshake(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler wsHandler,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Invoked before the handshake is processed.
|
boolean beforeHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, java.util.Map<java.lang.String,java.lang.Object> attributes) throws java.lang.Exception
request - the current requestresponse - the current responsewsHandler - the target WebSocket handlerattributes - attributes from the HTTP handshake to associate with the WebSocket
session; the provided attributes are copied, the original map is not used.true) or abort (false)java.lang.Exceptionvoid afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, @Nullable java.lang.Exception exception)
request - the current requestresponse - the current responsewsHandler - the target WebSocket handlerexception - an exception raised during the handshake, or null if none