Example usage for org.springframework.web.socket.server.support HttpSessionHandshakeInterceptor HttpSessionHandshakeInterceptor

List of usage examples for org.springframework.web.socket.server.support HttpSessionHandshakeInterceptor HttpSessionHandshakeInterceptor

Introduction

In this page you can find the example usage for org.springframework.web.socket.server.support HttpSessionHandshakeInterceptor HttpSessionHandshakeInterceptor.

Prototype

public HttpSessionHandshakeInterceptor() 

Source Link

Document

Default constructor for copying all HTTP session attributes and the HTTP session id.

Usage

From source file:com.github.mrstampy.gameboot.otp.websocket.OtpWebSocketTestConfiguration.java

@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
    //@formatter:off
    registry.addHandler(clearHandler, clrPath).addHandler(encHandler, encPath)
            .addInterceptors(new HttpSessionHandshakeInterceptor())
            .setHandshakeHandler(createHandshakeHandler());
    //@formatter:on
}