public abstract class AbstractChatProcessor extends Object implements ChatProcessorIntf, Const
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_CHAT_PROCESSOR |
| Constructor and Description |
|---|
AbstractChatProcessor() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doHandler(ChatBody chatBody,
org.tio.core.ChannelContext channelContext) |
void |
handler(ImPacket chatPacket,
org.tio.core.ChannelContext channelContext) |
boolean |
isProtocol(org.tio.core.ChannelContext channelContext)
不同协议判断方法
|
String |
name()
该proCmd处理器名称(自定义)
|
public static final String BASE_CHAT_PROCESSOR
public abstract void doHandler(ChatBody chatBody, org.tio.core.ChannelContext channelContext)
public boolean isProtocol(org.tio.core.ChannelContext channelContext)
ProcessorIntfisProtocol in interface ProcessorIntfpublic String name()
ProcessorIntfname in interface ProcessorIntfpublic void handler(ImPacket chatPacket, org.tio.core.ChannelContext channelContext) throws Exception
handler in interface ChatProcessorIntfExceptionCopyright © 2018. All rights reserved.