public class TioWebsocketMsgHandler extends Object implements org.tio.websocket.server.handler.IWsMsgHandler
| 构造器和说明 |
|---|
TioWebsocketMsgHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.tio.http.common.HttpResponse |
handshake(org.tio.http.common.HttpRequest httpRequest,
org.tio.http.common.HttpResponse httpResponse,
org.tio.core.ChannelContext channelContext)
handshake
|
void |
onAfterHandshaked(org.tio.http.common.HttpRequest httpRequest,
org.tio.http.common.HttpResponse httpResponse,
org.tio.core.ChannelContext channelContext)
afterHandshaked
|
Object |
onBytes(org.tio.websocket.common.WsRequest wsRequest,
byte[] bytes,
org.tio.core.ChannelContext channelContext)
receive bytes
|
Object |
onClose(org.tio.websocket.common.WsRequest wsRequest,
byte[] bytes,
org.tio.core.ChannelContext channelContext)
close connection
|
Object |
onText(org.tio.websocket.common.WsRequest wsRequest,
String text,
org.tio.core.ChannelContext channelContext)
receive text
|
public org.tio.http.common.HttpResponse handshake(org.tio.http.common.HttpRequest httpRequest,
org.tio.http.common.HttpResponse httpResponse,
org.tio.core.ChannelContext channelContext)
throws Exception
handshake 在接口中 org.tio.websocket.server.handler.IWsMsgHandlerhttpRequest - tio-http-requesthttpResponse - tio-http-responsechannelContext - contextException - epublic void onAfterHandshaked(org.tio.http.common.HttpRequest httpRequest,
org.tio.http.common.HttpResponse httpResponse,
org.tio.core.ChannelContext channelContext)
throws Exception
onAfterHandshaked 在接口中 org.tio.websocket.server.handler.IWsMsgHandlerhttpRequest - httpRequesthttpResponse - httpResponsechannelContext - channelContextException - epublic Object onClose(org.tio.websocket.common.WsRequest wsRequest, byte[] bytes, org.tio.core.ChannelContext channelContext) throws Exception
onClose 在接口中 org.tio.websocket.server.handler.IWsMsgHandlerwsRequest - wsRequestbytes - byteschannelContext - channelContextException - epublic Object onBytes(org.tio.websocket.common.WsRequest wsRequest, byte[] bytes, org.tio.core.ChannelContext channelContext) throws Exception
onBytes 在接口中 org.tio.websocket.server.handler.IWsMsgHandlerwsRequest - wsRequestbytes - byteschannelContext - channelContextException - epublic Object onText(org.tio.websocket.common.WsRequest wsRequest, String text, org.tio.core.ChannelContext channelContext) throws Exception
onText 在接口中 org.tio.websocket.server.handler.IWsMsgHandlerwsRequest - wsRequesttext - StringchannelContext - channelContextException - eCopyright © 2018. All rights reserved.