public abstract class BaseProxyHandler extends BaseHandler
Modifier and Type | Field and Description |
---|---|
protected OperateLogController |
operateLogController |
Constructor and Description |
---|
BaseProxyHandler(NodeUrl nodeUrl,
String dataParName) |
Modifier and Type | Method and Description |
---|---|
void |
afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) |
protected OperateLogController.CacheInfo |
cacheInfo(Map<String,Object> attributes,
com.alibaba.fastjson.JSONObject json,
UserOperateLogV1.OptType optType,
String dataId) |
void |
destroy(org.springframework.web.socket.WebSocketSession session)
关闭连接
|
protected abstract void |
handleTextMessage(Map<String,Object> attributes,
ProxySession proxySession,
com.alibaba.fastjson.JSONObject json,
ConsoleCommandOp consoleCommandOp)
消息处理方法
|
protected void |
handleTextMessage(Map<String,Object> attributes,
org.springframework.web.socket.WebSocketSession session,
com.alibaba.fastjson.JSONObject json,
ConsoleCommandOp consoleCommandOp) |
protected void |
handleTextMessage(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.TextMessage message) |
afterConnectionClosed, handleTransportError
handleBinaryMessage
protected OperateLogController operateLogController
public void afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) throws Exception
afterConnectionEstablished
in interface org.springframework.web.socket.WebSocketHandler
afterConnectionEstablished
in class org.springframework.web.socket.handler.AbstractWebSocketHandler
Exception
protected void handleTextMessage(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.TextMessage message) throws IOException
handleTextMessage
in class org.springframework.web.socket.handler.AbstractWebSocketHandler
IOException
protected void handleTextMessage(Map<String,Object> attributes, org.springframework.web.socket.WebSocketSession session, com.alibaba.fastjson.JSONObject json, ConsoleCommandOp consoleCommandOp) throws IOException
IOException
protected abstract void handleTextMessage(Map<String,Object> attributes, ProxySession proxySession, com.alibaba.fastjson.JSONObject json, ConsoleCommandOp consoleCommandOp)
attributes
- 属性proxySession
- 代理回话json
- 数据consoleCommandOp
- 操作类型protected OperateLogController.CacheInfo cacheInfo(Map<String,Object> attributes, com.alibaba.fastjson.JSONObject json, UserOperateLogV1.OptType optType, String dataId)
public void destroy(org.springframework.web.socket.WebSocketSession session)
BaseHandler
destroy
in class BaseHandler
session
- sessionCopyright © 2017–2019. All rights reserved.