org.neociclo.odetteftp.netty.codec
Class OdetteFtpDecoder

java.lang.Object
  extended by org.jboss.netty.handler.codec.oneone.OneToOneDecoder
      extended by org.neociclo.odetteftp.netty.codec.OdetteFtpDecoder
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

@ChannelHandler.Sharable
public class OdetteFtpDecoder
extends org.jboss.netty.handler.codec.oneone.OneToOneDecoder

Decode incoming buffer raw data into OdetteFtpExchangeBuffer objects.

This implementation will work with TransportType.TCPIP and TransportType.X25_MBGW, and other underlying communication channels might not work. Pure ISDN and X25 connection like may require a version of OdetteFtpDecoder specialized from the FrameDecoder.

Version:
$Rev: 459 $ $Date: 2010-07-02 06:33:44 -0300 (Fri, 02 Jul 2010) $
Author:
Rafael Marins

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
OdetteFtpDecoder()
           
 
Method Summary
protected  Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, Object msg)
           
 
Methods inherited from class org.jboss.netty.handler.codec.oneone.OneToOneDecoder
handleUpstream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OdetteFtpDecoder

public OdetteFtpDecoder()
Method Detail

decode

protected Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
                        org.jboss.netty.channel.Channel channel,
                        Object msg)
                 throws Exception
Specified by:
decode in class org.jboss.netty.handler.codec.oneone.OneToOneDecoder
Throws:
Exception


ACCORD