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. |
toStringbindRequested, channelBound, channelClosed, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequestedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamepublic 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.SimpleChannelHandlerjava.lang.Exceptionpublic 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.SimpleChannelHandlerjava.lang.Exceptionprotected 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)