public abstract class BaseClientHandshakeHandler extends AbstractNamedChannelHandler
ClientHandshake
handlers.Constructor and Description |
---|
BaseClientHandshakeHandler(ClientHandshake clientHandshake,
java.util.concurrent.ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ClientHandshakeListener clientHandshakeListener) |
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
protected abstract void |
onFailure(java.lang.String errorMessage,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
protected abstract void |
onSuccess(ConnectionHeader incommingConnectionHeader,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
Called when the
ClientHandshake succeeds and will block the network
thread until it returns. |
toString
bindRequested, channelBound, channelClosed, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
public BaseClientHandshakeHandler(ClientHandshake clientHandshake, java.util.concurrent.ExecutorService executorService)
public void addListener(ClientHandshakeListener clientHandshakeListener)
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws java.lang.Exception
channelConnected
in class org.jboss.netty.channel.SimpleChannelHandler
java.lang.Exception
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws java.lang.Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelHandler
java.lang.Exception
protected abstract void onSuccess(ConnectionHeader incommingConnectionHeader, org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)
ClientHandshake
succeeds and will block the network
thread until it returns.
This must block in order to allow changes to the pipeline to be made before further messages arrive.
incommingConnectionHeader
- ctx
- e
- protected abstract void onFailure(java.lang.String errorMessage, org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)