public class SecureChatServerHandler extends SimpleChannelUpstreamHandler
| Modifier and Type | Class and Description |
|---|---|
private static class |
SecureChatServerHandler.Greeter |
ChannelHandler.Sharable| Modifier and Type | Field and Description |
|---|---|
(package private) static ChannelGroup |
channels |
| Constructor and Description |
|---|
SecureChatServerHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelConnected(ChannelHandlerContext ctx,
ChannelStateEvent e)
Invoked when a
Channel is open, bound to a local address, and
connected to a remote address. |
void |
channelDisconnected(ChannelHandlerContext ctx,
ChannelStateEvent e)
Invoked when a
Channel was disconnected from its remote peer. |
void |
exceptionCaught(ChannelHandlerContext ctx,
ExceptionEvent e)
Invoked when an exception was raised by an I/O thread or a
ChannelHandler. |
void |
handleUpstream(ChannelHandlerContext ctx,
ChannelEvent e)
Handles the specified upstream event.
|
void |
messageReceived(ChannelHandlerContext ctx,
MessageEvent e)
Invoked when a message object (e.g:
ChannelBuffer) was received
from a remote peer. |
channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, writeCompletestatic final ChannelGroup channels
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws java.lang.Exception
SimpleChannelUpstreamHandlerhandleUpstream in interface ChannelUpstreamHandlerhandleUpstream in class SimpleChannelUpstreamHandlerctx - the context object for this handlere - the upstream event to process or interceptjava.lang.Exceptionpublic void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)
SimpleChannelUpstreamHandlerChannel is open, bound to a local address, and
connected to a remote address.
channelConnected in class SimpleChannelUpstreamHandlerpublic void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e)
SimpleChannelUpstreamHandlerChannel was disconnected from its remote peer.channelDisconnected in class SimpleChannelUpstreamHandlerpublic void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
SimpleChannelUpstreamHandlerChannelBuffer) was received
from a remote peer.messageReceived in class SimpleChannelUpstreamHandlerpublic void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
SimpleChannelUpstreamHandlerChannelHandler.exceptionCaught in class SimpleChannelUpstreamHandler