public class WsProtocolHandler extends AbProtocolHandler
Constructor and Description |
---|
WsProtocolHandler() |
WsProtocolHandler(WsServerConfig wsServerConfig,
IWsMsgHandler wsMsgHandler) |
Modifier and Type | Method and Description |
---|---|
ImPacket |
decode(ByteBuffer buffer,
org.tio.core.ChannelContext channelContext) |
ByteBuffer |
encode(org.tio.core.intf.Packet packet,
org.tio.core.GroupContext groupContext,
org.tio.core.ChannelContext channelContext) |
IWsMsgHandler |
getWsMsgHandler() |
WsServerConfig |
getWsServerConfig() |
void |
handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext) |
void |
init(ImConfig imConfig) |
IProtocol |
protocol() |
void |
setWsMsgHandler(IWsMsgHandler wsMsgHandler) |
void |
setWsServerConfig(WsServerConfig wsServerConfig) |
decode
public WsProtocolHandler()
public WsProtocolHandler(WsServerConfig wsServerConfig, IWsMsgHandler wsMsgHandler)
public void init(ImConfig imConfig)
init
in class AbProtocolHandler
public ByteBuffer encode(org.tio.core.intf.Packet packet, org.tio.core.GroupContext groupContext, org.tio.core.ChannelContext channelContext)
public void handler(org.tio.core.intf.Packet packet, org.tio.core.ChannelContext channelContext) throws Exception
Exception
public ImPacket decode(ByteBuffer buffer, org.tio.core.ChannelContext channelContext) throws org.tio.core.exception.AioDecodeException
decode
in class AbProtocolHandler
org.tio.core.exception.AioDecodeException
public WsServerConfig getWsServerConfig()
public void setWsServerConfig(WsServerConfig wsServerConfig)
public IWsMsgHandler getWsMsgHandler()
public void setWsMsgHandler(IWsMsgHandler wsMsgHandler)
public IProtocol protocol()
protocol
in class AbProtocolHandler
Copyright © 2018. All rights reserved.