@ChannelHandler.Sharable
public class BasicChannelUpstreamHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
ChannelUpstreamHandler
which is used by the SMTPServer and other line based protocolsModifier 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.SimpleChannelUpstreamHandler
Exception
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
ConnectHandler
instances which are stored in the ProtocolHandlerChain
channelConnected
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
channelDisconnected
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception
LineHandler
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
channelClosed
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
protected void cleanup(org.jboss.netty.channel.ChannelHandlerContext ctx)
ctx
- protected ProtocolSession createSession(org.jboss.netty.channel.ChannelHandlerContext ctx) throws Exception
Exception
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.