public class NettyClientUpstreamHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected NettyClientChannel |
clientChannel |
protected String |
closedReason |
protected Logger |
logger |
| 构造器和说明 |
|---|
NettyClientUpstreamHandler(Logger logger,
NettyClientChannel clientChannel) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 void |
clear(org.jboss.netty.channel.ChannelHandlerContext ctx) |
protected ChannelContext |
createContext(Object message) |
protected ChannelContext |
createContext(Throwable error) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
protected ChannelHandler |
getHandler() |
protected boolean |
haveHandler() |
protected Logger logger
protected NettyClientChannel clientChannel
protected String closedReason
public NettyClientUpstreamHandler(Logger logger, NettyClientChannel clientChannel)
public void channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
channelOpen 在类中 org.jboss.netty.channel.SimpleChannelUpstreamHandlerpublic void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelClosed 在类中 org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
throws Exception
exceptionCaught 在类中 org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionprotected boolean haveHandler()
protected ChannelHandler getHandler()
protected ChannelContext createContext(Object message)
protected ChannelContext createContext(Throwable error)
protected void clear(org.jboss.netty.channel.ChannelHandlerContext ctx)
Copyright © 2020. All rights reserved.