java.lang.Object
nl.andrewl.concord_server.event.ChatHandler
- All Implemented Interfaces:
MessageHandler<nl.andrewl.concord_core.msg.types.chat.Chat>
public class ChatHandler
extends Object
implements MessageHandler<nl.andrewl.concord_core.msg.types.chat.Chat>
This handler is responsible for taking incoming chat messages and saving them
to the channel's message collection, and then relaying the new message to all
clients in the channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(nl.andrewl.concord_core.msg.types.chat.Chat msg, ClientThread client, ConcordServer server)
-
Constructor Details
-
ChatHandler
public ChatHandler()
-
-
Method Details
-
handle
public void handle(nl.andrewl.concord_core.msg.types.chat.Chat msg, ClientThread client, ConcordServer server) throws IOException - Specified by:
handle
in interfaceMessageHandler<nl.andrewl.concord_core.msg.types.chat.Chat>
- Throws:
IOException
-