This commit is contained in:
Redkale
2018-01-03 19:17:27 +08:00
parent dd197cfa24
commit 4798ddfe19

View File

@@ -7,6 +7,7 @@ package org.redkale.net.http;
import java.io.Serializable;
import java.util.Map;
import org.redkale.convert.json.JsonConvert;
/**
* WebSocket.broadcastMessage时的过滤条件
@@ -17,25 +18,41 @@ import java.util.Map;
* @author zhangjx
*/
public class WebSocketRange implements Serializable {
protected String wskey;
protected Map<String, String> attach;
public WebSocketRange() {
}
public WebSocketRange(String wskey) {
this.wskey = wskey;
}
public WebSocketRange(String wskey, Map<String, String> attach) {
this.wskey = wskey;
this.attach = attach;
}
public String getWskey() {
return wskey;
}
public void setWskey(String wskey) {
this.wskey = wskey;
}
public Map<String, String> getAttach() {
return attach;
}
public void setAttach(Map<String, String> attach) {
this.attach = attach;
}
@Override
public String toString() {
return JsonConvert.root().convertTo(this);
}
}