public class WsTioServerHandler extends Object implements org.tio.server.intf.TioServerHandler
| Constructor and Description |
|---|
WsTioServerHandler(HttpConfig wsServerConfig,
IWsMsgHandler wsMsgHandler) |
| Modifier and Type | Method and Description |
|---|---|
WsRequest |
decode(ByteBuffer buffer,
int limit,
int position,
int readableLength,
org.tio.core.ChannelContext channelContext) |
ByteBuffer |
encode(org.tio.core.intf.Packet packet,
org.tio.core.TioConfig tioConfig,
org.tio.core.ChannelContext channelContext) |
HttpConfig |
getHttpConfig() |
void |
handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext) |
HttpResponse |
updateWebSocketProtocol(HttpRequest request)
本方法改编自baseio: baseio
感谢开源作者的付出 |
public WsTioServerHandler(HttpConfig wsServerConfig, IWsMsgHandler wsMsgHandler)
public WsRequest decode(ByteBuffer buffer, int limit, int position, int readableLength, org.tio.core.ChannelContext channelContext) throws org.tio.core.exception.TioDecodeException
decode in interface org.tio.core.intf.TioHandlerorg.tio.core.exception.TioDecodeExceptionpublic ByteBuffer encode(org.tio.core.intf.Packet packet, org.tio.core.TioConfig tioConfig, org.tio.core.ChannelContext channelContext)
encode in interface org.tio.core.intf.TioHandlerpublic HttpConfig getHttpConfig()
public void handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext)
throws Exception
handler in interface org.tio.core.intf.TioHandlerExceptionpublic HttpResponse updateWebSocketProtocol(HttpRequest request)
request - HttpRequestCopyright © 2025. All rights reserved.