Netconf message related constants moved to one place.
[controller.git] / opendaylight / netconf / netconf-util / src / main / java / org / opendaylight / controller / netconf / util / handler / NetconfMessageAggregator.java
index 131c3d71a57c9df779302ca4ff352e10f53841e6..868ddbd99c37a07a6fd31198cd81fe01c654e662 100644 (file)
@@ -11,7 +11,7 @@ package org.opendaylight.controller.netconf.util.handler;
 import java.util.List;
 
 import org.opendaylight.controller.netconf.util.messages.FramingMechanism;
-import org.opendaylight.controller.netconf.util.messages.NetconfMessageFactory;
+import org.opendaylight.controller.netconf.util.messages.NetconfMessageConstants;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -23,11 +23,11 @@ public class NetconfMessageAggregator extends ByteToMessageDecoder {
 
     private final static Logger logger = LoggerFactory.getLogger(NetconfMessageAggregator.class);
 
-    private byte[] eom = NetconfMessageFactory.endOfMessage;
+    private byte[] eom = NetconfMessageConstants.endOfMessage;
 
     public NetconfMessageAggregator(FramingMechanism framingMechanism) {
         if (framingMechanism == FramingMechanism.CHUNK) {
-            eom = NetconfMessageFactory.endOfChunk;
+            eom = NetconfMessageConstants.endOfChunk;
         }
     }
 
@@ -41,7 +41,7 @@ public class NetconfMessageAggregator extends ByteToMessageDecoder {
             ByteBuf msg = in.readBytes(index);
             in.readBytes(eom.length);
             in.discardReadBytes();
-            logger.debug("Message is complete. {}", msg.readableBytes());
+            logger.debug("Message is complete.");
             out.add(msg);
         }
     }