public class WebSocketServerProtocolHandshakeHandler extends SimpleChannelUpstreamHandler
ChannelHandler.Sharable
构造器和说明 |
---|
WebSocketServerProtocolHandshakeHandler(java.lang.String websocketPath,
java.lang.String subprotocols,
boolean allowExtensions) |
限定符和类型 | 方法和说明 |
---|---|
void |
exceptionCaught(ChannelHandlerContext ctx,
java.lang.Throwable cause) |
void |
messageReceived(ChannelHandlerContext ctx,
MessageEvent e)
Invoked when a message object (e.g:
ChannelBuffer ) was received
from a remote peer. |
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, exceptionCaught, handleUpstream, writeComplete
public WebSocketServerProtocolHandshakeHandler(java.lang.String websocketPath, java.lang.String subprotocols, boolean allowExtensions)
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws java.lang.Exception
SimpleChannelUpstreamHandler
ChannelBuffer
) was received
from a remote peer.messageReceived
在类中 SimpleChannelUpstreamHandler
java.lang.Exception
public void exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
java.lang.Exception