org.redkale.net.http.WebSocketRange Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.net.http;
import java.io.Serializable;
import java.util.Map;
import org.redkale.convert.json.JsonConvert;
/**
* WebSocket.broadcastMessage时的过滤条件
*
*
* 详情见: https://redkale.org
*
* @author zhangjx
*/
public class WebSocketRange implements Serializable {
protected String wskey;
protected Map attach;
public WebSocketRange() {
}
public WebSocketRange(String wskey) {
this.wskey = wskey;
}
public WebSocketRange(String wskey, Map attach) {
this.wskey = wskey;
this.attach = attach;
}
public String getWskey() {
return wskey;
}
public void setWskey(String wskey) {
this.wskey = wskey;
}
public Map getAttach() {
return attach;
}
public void setAttach(Map attach) {
this.attach = attach;
}
@Override
public String toString() {
return JsonConvert.root().convertTo(this);
}
}