net.gleamynode.netty.handler.codec.frame
Class FrameDecoder

java.lang.Object
  extended by net.gleamynode.netty.channel.SimpleChannelHandler
      extended by net.gleamynode.netty.handler.codec.frame.FrameDecoder
All Implemented Interfaces:
ChannelHandler, ChannelUpstreamHandler
Direct Known Subclasses:
DelimiterBasedFrameDecoder, FixedLengthFrameDecoder, ObjectDecoder, SslHandler

@ChannelPipelineCoverage(value="one")
public abstract class FrameDecoder
extends SimpleChannelHandler

Version:
$Rev:231 $, $Date:2008-06-12 16:44:50 +0900 (목, 12 6월 2008) $
Author:
The Netty Project (netty@googlegroups.com), Trustin Lee (trustin@gmail.com)

Constructor Summary
FrameDecoder()
           
 
Method Summary
 void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e)
           
 void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e)
           
protected abstract  Object decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer)
           
protected  Object decodeLast(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer)
           
 void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
           
 void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
           
 
Methods inherited from class net.gleamynode.netty.channel.SimpleChannelHandler
channelBound, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameDecoder

public FrameDecoder()
Method Detail

messageReceived

public void messageReceived(ChannelHandlerContext ctx,
                            MessageEvent e)
                     throws Exception
Overrides:
messageReceived in class SimpleChannelHandler
Throws:
Exception

channelDisconnected

public void channelDisconnected(ChannelHandlerContext ctx,
                                ChannelStateEvent e)
                         throws Exception
Overrides:
channelDisconnected in class SimpleChannelHandler
Throws:
Exception

channelClosed

public void channelClosed(ChannelHandlerContext ctx,
                          ChannelStateEvent e)
                   throws Exception
Overrides:
channelClosed in class SimpleChannelHandler
Throws:
Exception

exceptionCaught

public void exceptionCaught(ChannelHandlerContext ctx,
                            ExceptionEvent e)
                     throws Exception
Overrides:
exceptionCaught in class SimpleChannelHandler
Throws:
Exception

decode

protected abstract Object decode(ChannelHandlerContext ctx,
                                 Channel channel,
                                 ChannelBuffer buffer)
                          throws Exception
Throws:
Exception

decodeLast

protected Object decodeLast(ChannelHandlerContext ctx,
                            Channel channel,
                            ChannelBuffer buffer)
                     throws Exception
Throws:
Exception


Copyright © 2008-Present Trustin Heuiseung Lee. All Rights Reserved.