public class GetHttpSessionConfigurator
extends javax.websocket.server.ServerEndpointConfig.Configurator
@OnOpen
public void onOpen(Session session,EndpointConfig config) {
HttpSession httpSession= (HttpSession) config.getUserProperties().get(HttpSession.class.getName());
sessionMap.put(session.getId(), session);
}
https://blog.csdn.net/huangbaokang/article/details/77579151?utm_source=blogxgwz0| 构造器和说明 |
|---|
GetHttpSessionConfigurator() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
modifyHandshake(javax.websocket.server.ServerEndpointConfig sec,
javax.websocket.server.HandshakeRequest request,
javax.websocket.HandshakeResponse response) |