public abstract class NettyServerUpstreamHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.netty.channel.group.ChannelGroup |
allChannels |
protected ChannelHandler |
channelHandler |
protected String |
closedReason |
protected Logger |
ioErrorLogger |
protected Logger |
logger |
protected ChannelSender |
sender |
| Constructor and Description |
|---|
NettyServerUpstreamHandler(LoggerFactory loggerFactory,
ChannelHandler channelHandler,
org.jboss.netty.channel.group.ChannelGroup channelGroup) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
protected ChannelContext |
createContext(Object message) |
protected ChannelContext |
createContext(Throwable error) |
protected abstract ChannelSender |
createSender(org.jboss.netty.channel.Channel channel) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
protected Logger logger
protected Logger ioErrorLogger
protected ChannelHandler channelHandler
protected org.jboss.netty.channel.group.ChannelGroup allChannels
protected ChannelSender sender
protected String closedReason
public NettyServerUpstreamHandler(LoggerFactory loggerFactory, ChannelHandler channelHandler, org.jboss.netty.channel.group.ChannelGroup channelGroup)
public void channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
channelOpen in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerpublic void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelClosed in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
throws Exception
exceptionCaught in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionprotected abstract ChannelSender createSender(org.jboss.netty.channel.Channel channel)
protected ChannelContext createContext(Object message)
protected ChannelContext createContext(Throwable error)
Copyright © 2021. All rights reserved.