/* 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;
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
*
* @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");
}
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");
}