Renamed packages to org.opendaylight.openflowjava.protocol.impl.*
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / OFFrameDecoder.java
similarity index 87%
rename from openflow-protocol-impl/src/main/java/org/openflow/lib/OfFrameDecoder.java
rename to openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OFFrameDecoder.java
index 668925bb041606a12888c60985970f1f41865bf8..650fe3b51f906ff0317493795481ee57b8126a24 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
 
-package org.openflow.lib;
+package org.opendaylight.openflowjava.protocol.impl.core;
 
 import io.netty.buffer.ByteBuf;
 import io.netty.channel.ChannelHandlerContext;
@@ -10,24 +10,24 @@ import java.util.List;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
-import org.openflow.lib.TcpHandler.COMPONENT_NAMES;
+import org.opendaylight.openflowjava.protocol.impl.core.TcpHandler.COMPONENT_NAMES;
 
 /**
  * Class for decoding incoming messages into message frames.
  *
  * @author michal.polkorab
  */
-public class OfFrameDecoder extends ByteToMessageDecoder {
+public class OFFrameDecoder extends ByteToMessageDecoder {
 
     /** Length of OpenFlow 1.3 header */
     public static final byte LENGTH_OF_HEADER = 8;
     private static final byte LENGTH_INDEX_IN_HEADER = 2;
-    private static final Logger LOGGER = LoggerFactory.getLogger(OfFrameDecoder.class);
+    private static final Logger LOGGER = LoggerFactory.getLogger(OFFrameDecoder.class);
 
     /**
      * Constructor of class.
      */
-    public OfFrameDecoder() {
+    public OFFrameDecoder() {
         LOGGER.info("Creating OFFrameDecoder");
     }
 
@@ -66,7 +66,7 @@ public class OfFrameDecoder extends ByteToMessageDecoder {
     private static void enableOFVersionDetector(ChannelHandlerContext ctx) {
         if (ctx.pipeline().get(COMPONENT_NAMES.OF_VERSION_DETECTOR.name()) == null) {
             LOGGER.info("Adding OFVD");
-            ctx.pipeline().addLast(COMPONENT_NAMES.OF_VERSION_DETECTOR.name(), new OfVersionDetector());
+            ctx.pipeline().addLast(COMPONENT_NAMES.OF_VERSION_DETECTOR.name(), new OFVersionDetector());
         } else {
             LOGGER.debug("OFVD already in pipeline");
         }