@ChannelHandler.Sharable
public class BasicChannelUpstreamHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
ChannelUpstreamHandler which is used by the SMTPServer and other line based protocols| Modifier and Type | Field and Description |
|---|---|
protected ProtocolHandlerChain |
chain |
protected Protocol |
protocol |
protected Encryption |
secure |
| Constructor and Description |
|---|
BasicChannelUpstreamHandler(Protocol protocol) |
BasicChannelUpstreamHandler(Protocol protocol,
Encryption secure) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelBound(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
Call the
ConnectHandler instances which are stored in the ProtocolHandlerChain |
void |
channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
protected void |
cleanup(org.jboss.netty.channel.ChannelHandlerContext ctx)
Cleanup the channel
|
protected ProtocolSession |
createSession(org.jboss.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
Call the
LineHandler |
protected final Protocol protocol
protected final ProtocolHandlerChain chain
protected final Encryption secure
public BasicChannelUpstreamHandler(Protocol protocol)
public BasicChannelUpstreamHandler(Protocol protocol, Encryption secure)
public void channelBound(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelBound in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
ConnectHandler instances which are stored in the ProtocolHandlerChainchannelConnected in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelDisconnected in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
throws Exception
LineHandlermessageReceived in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelClosed in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionprotected void cleanup(org.jboss.netty.channel.ChannelHandlerContext ctx)
ctx - protected ProtocolSession createSession(org.jboss.netty.channel.ChannelHandlerContext ctx) throws Exception
ExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.