类 JsonResponse

java.lang.Object
com.walker.tcp.data.BaseResponse<Object>
com.walker.tcp.websocket.JsonResponse
所有已实现的接口:
Response<Object>, Serializable
直接已知子类:
HelloResponse

public abstract class JsonResponse extends BaseResponse<Object>
另请参阅:
  • 构造器详细资料

    • JsonResponse

      public JsonResponse()
  • 方法详细资料

    • toData

      public io.netty.handler.codec.http.websocketx.TextWebSocketFrame toData()
      从接口复制的说明: Response
      把响应对象转换成可传输的内容。
      返回:
    • translateProperties

      protected abstract void translateProperties(Map<String,Object> result)
      由子类实现,把业务属性转换到系统生成的Json对象中。如:

       result.put("name", this.name);
       result.put("money", this.money);
       
      参数:
      result -