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)
ProcessorIntf
isProtocol
in interface ProcessorIntf
public String name()
ProcessorIntf
name
in interface ProcessorIntf
public void handler(ImPacket chatPacket, org.tio.core.ChannelContext channelContext) throws Exception
handler
in interface ChatProcessorIntf
Exception
Copyright © 2018. All rights reserved.