Renamed packages to org.opendaylight.openflowjava.protocol.impl.*
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / OFVersionDetector.java
similarity index 86%
rename from openflow-protocol-impl/src/main/java/org/openflow/lib/OfVersionDetector.java
rename to openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OFVersionDetector.java
index fd126f6bf9b0bbe017be1be7a98eb6715a1cead3..8ad4526055fe1297608e8fec9822d0b55d1824c0 100644 (file)
@@ -1,5 +1,5 @@
 /* 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;
@@ -9,7 +9,7 @@ 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 that detects version of used OpenFlow Protocol and engages right OFCodec into
@@ -17,16 +17,16 @@ import org.openflow.lib.TcpHandler.COMPONENT_NAMES;
  *
  * @author michal.polkorab
  */
-public class OfVersionDetector extends ByteToMessageDecoder {
+public class OFVersionDetector extends ByteToMessageDecoder {
 
     /** Version number of OpenFlow 1.3 protocol */
     public static final byte OF13_VERSION_ID = 0x04;
-    private static final Logger LOGGER = LoggerFactory.getLogger(OfVersionDetector.class);
+    private static final Logger LOGGER = LoggerFactory.getLogger(OFVersionDetector.class);
 
     /**
      * Constructor of class.
      */
-    public OfVersionDetector() {
+    public OFVersionDetector() {
         LOGGER.info("Creating OFVersionDetector");
     }
 
@@ -59,7 +59,7 @@ public class OfVersionDetector extends ByteToMessageDecoder {
     private static void enableOF13Codec(ChannelHandlerContext chc) {
         if (chc.pipeline().get(COMPONENT_NAMES.OF_CODEC.name()) == null) {
             LOGGER.info("Engaging OF13Codec");
-            chc.pipeline().addLast(COMPONENT_NAMES.OF_CODEC.name(), new Of13Codec());
+            chc.pipeline().addLast(COMPONENT_NAMES.OF_CODEC.name(), new OF13Codec());
         } else {
             LOGGER.debug("OF13Codec already in pipeline");
         }