public class WSMessage<T>
extends Object
- 版本:
- 1.15.0
- 作者:
- scx567888
-
构造器概要
构造器
Constructor for WSMessage.
Constructor for WSMessage.
Constructor for WSMessage.
Constructor for WSMessage.
-
方法概要
io.vertx.core.http.ServerWebSocket
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
WSMessage
public WSMessage()
Constructor for WSMessage.
-
WSMessage
public WSMessage(String address)
Constructor for WSMessage.
- 参数:
address - a String object
-
WSMessage
public WSMessage(String address,
T body)
Constructor for WSMessage.
- 参数:
address - a String object
body - a T object
-
WSMessage
Constructor for WSMessage.
- 参数:
address - a String object
body - a T object
headers - a Map object
-
方法详细资料
-
fromJson
public static WSMessage<Object> fromJson(String json)
throws com.fasterxml.jackson.core.JsonProcessingException
- 参数:
json - a String object
- 返回:
- a
WSMessage object
- 抛出:
com.fasterxml.jackson.core.JsonProcessingException - if any.
-
-
-
-
webSocket
public io.vertx.core.http.ServerWebSocket webSocket()
- 返回:
- a
ServerWebSocket object