public class WebSocketHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ID_ALL |
static String |
ID_ROOM_PREFIX |
static String |
ID_TAB_PREFIX |
static String |
ID_USER_PREFIX |
Constructor and Description |
---|
WebSocketHelper() |
Modifier and Type | Method and Description |
---|---|
static org.json.JSONObject |
getMessage(long curUserId,
List<org.apache.openmeetings.db.entity.basic.ChatMessage> list,
org.apache.commons.lang3.time.FastDateFormat fmt,
BiConsumer<org.json.JSONObject,org.apache.openmeetings.db.entity.user.User> uFmt) |
static void |
send(Function<org.apache.wicket.Application,List<org.apache.openmeetings.db.entity.basic.Client>> func,
Consumer<org.apache.wicket.protocol.ws.api.IWebSocketConnection> consumer,
Predicate<org.apache.openmeetings.db.entity.basic.Client> check) |
static void |
sendAll(String m) |
static void |
sendClient(org.apache.openmeetings.db.entity.basic.Client c,
byte[] b) |
static void |
sendRoom(org.apache.openmeetings.db.entity.basic.ChatMessage m,
org.json.JSONObject msg) |
static void |
sendRoom(Long roomId,
Consumer<org.apache.wicket.protocol.ws.api.IWebSocketConnection> consumer,
Predicate<org.apache.openmeetings.db.entity.basic.Client> check) |
static void |
sendRoom(Long roomId,
String m) |
static void |
sendRoom(Long roomId,
String m,
Predicate<org.apache.openmeetings.db.entity.basic.Client> check) |
static void |
sendRoom(org.apache.openmeetings.util.message.RoomMessage m) |
static void |
sendUser(Long userId,
String m) |
public static final String ID_TAB_PREFIX
public static final String ID_ALL
public static final String ID_ROOM_PREFIX
public static final String ID_USER_PREFIX
public static void sendClient(org.apache.openmeetings.db.entity.basic.Client c, byte[] b)
public static void sendRoom(org.apache.openmeetings.util.message.RoomMessage m)
public static org.json.JSONObject getMessage(long curUserId, List<org.apache.openmeetings.db.entity.basic.ChatMessage> list, org.apache.commons.lang3.time.FastDateFormat fmt, BiConsumer<org.json.JSONObject,org.apache.openmeetings.db.entity.user.User> uFmt)
public static void sendRoom(org.apache.openmeetings.db.entity.basic.ChatMessage m, org.json.JSONObject msg)
public static void sendRoom(Long roomId, String m, Predicate<org.apache.openmeetings.db.entity.basic.Client> check)
public static void sendAll(String m)
public static void sendRoom(Long roomId, Consumer<org.apache.wicket.protocol.ws.api.IWebSocketConnection> consumer, Predicate<org.apache.openmeetings.db.entity.basic.Client> check)
Copyright © 2012–2017 Apache Software Foundation. All rights reserved.