net.floodlightcontroller.core.internal
Class OFMessageDecoder

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.jboss.netty.handler.codec.frame.FrameDecoder
          extended by net.floodlightcontroller.core.internal.OFMessageDecoder
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

public class OFMessageDecoder
extends org.jboss.netty.handler.codec.frame.FrameDecoder

Decode an openflow message from a Channel, for use in a netty pipeline

Author:
readams

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
OFMessageDecoder()
           
 
Method Summary
protected  java.lang.Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer)
           
protected  java.lang.Object decodeLast(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer)
           
 
Methods inherited from class org.jboss.netty.handler.codec.frame.FrameDecoder
channelClosed, channelDisconnected, exceptionCaught, messageReceived
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OFMessageDecoder

public OFMessageDecoder()
Method Detail

decode

protected java.lang.Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                  org.jboss.netty.channel.Channel channel,
                                  org.jboss.netty.buffer.ChannelBuffer buffer)
                           throws java.lang.Exception
Specified by:
decode in class org.jboss.netty.handler.codec.frame.FrameDecoder
Throws:
java.lang.Exception

decodeLast

protected java.lang.Object decodeLast(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                      org.jboss.netty.channel.Channel channel,
                                      org.jboss.netty.buffer.ChannelBuffer buffer)
                               throws java.lang.Exception
Overrides:
decodeLast in class org.jboss.netty.handler.codec.frame.FrameDecoder
Throws:
java.lang.Exception