public class WebSocketServerProtocolHandshakeHandler extends SimpleChannelUpstreamHandler
ChannelHandler.Sharable
Constructor and Description |
---|
WebSocketServerProtocolHandshakeHandler(String websocketPath,
String subprotocols,
boolean allowExtensions) |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(ChannelHandlerContext ctx,
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 void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception
SimpleChannelUpstreamHandler
ChannelBuffer
) was received
from a remote peer.messageReceived
in class SimpleChannelUpstreamHandler
Exception
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
Exception
Copyright © 2008-2014 The Netty Project. All Rights Reserved.