-
-
方法概要
io.netty.handler.codec.http.websocketx.TextWebSocketFrame
protected abstract void
由子类实现,把业务属性转换到系统生成的Json对象中。
从类继承的方法 com.walker.tcp.data.BaseResponse
getDelimiter, getMessageId, getName, getProtocolNum, getTopic, setBusinessContent, setDelimiter, setMessageId, setName, setProtocolNum, setTopic, toString
-
构造器详细资料
-
JsonResponse
public JsonResponse()
-
方法详细资料
-
toData
public io.netty.handler.codec.http.websocketx.TextWebSocketFrame toData()
把响应对象转换成可传输的内容。
- 返回:
-
translateProperties
由子类实现,把业务属性转换到系统生成的Json对象中。如:
result.put("name", this.name);
result.put("money", this.money);
- 参数:
result -