Renamed packages to org.opendaylight.openflowjava.protocol.impl.*
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / OF13Codec.java
similarity index 87%
rename from openflow-protocol-impl/src/main/java/org/openflow/lib/Of13Codec.java
rename to openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OF13Codec.java
index 1867eeeb1f6820853cc915ea4e46c06e39f2f0ef..4e92ad0602ad76819baf368998b7abff4f78ccc5 100644 (file)
@@ -1,12 +1,12 @@
 /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */\r
-package org.openflow.lib;\r
+package org.opendaylight.openflowjava.protocol.impl.core;\r
 \r
 import io.netty.buffer.ByteBuf;\r
 import io.netty.channel.ChannelHandlerContext;\r
 import io.netty.channel.ChannelInboundHandlerAdapter;\r
 \r
-import org.openflow.lib.deserialization.DeserializationFactory;\r
-import org.openflow.util.ByteBufUtils;\r
+import org.opendaylight.openflowjava.protocol.impl.deserialization.DeserializationFactory;\r
+import org.opendaylight.openflowjava.protocol.impl.util.ByteBufUtils;\r
 import org.slf4j.Logger;\r
 import org.slf4j.LoggerFactory;\r
 \r
@@ -16,16 +16,16 @@ import org.slf4j.LoggerFactory;
  *\r
  * @author michal.polkorab\r
  */\r
-public class Of13Codec extends ChannelInboundHandlerAdapter {\r
+public class OF13Codec extends ChannelInboundHandlerAdapter {\r
 \r
     // TODO - fix with enum in API\r
     private static final int MESSAGE_TYPES = 29;\r
-    private static final Logger LOGGER = LoggerFactory.getLogger(Of13Codec.class);\r
+    private static final Logger LOGGER = LoggerFactory.getLogger(OF13Codec.class);\r
 \r
     /**\r
      * Constructor of class\r
      */\r
-    public Of13Codec() {\r
+    public OF13Codec() {\r
         LOGGER.info("Creating OF 1.3 Codec");\r
         \r
     }\r
@@ -104,6 +104,6 @@ public class Of13Codec extends ChannelInboundHandlerAdapter {
     }\r
 \r
     private static boolean checkOFHeader(short type, int length) {\r
-        return !((type > MESSAGE_TYPES) || (length < OfFrameDecoder.LENGTH_OF_HEADER));\r
+        return !((type > MESSAGE_TYPES) || (length < OFFrameDecoder.LENGTH_OF_HEADER));\r
     }\r
 }\r