X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Futil%2Fmessages%2FNetconfMessageConstants.java;h=89285d18c021fe4bcaf9eec7dc9b3a4deb662715;hb=93154ea2573eb37ebcca4c360bf538d8d92967f9;hp=1a08f9063fdad0d526c483e10d0a83cce3acbb62;hpb=195dbe7884c7338a8fe9b58765ca5665f4a6f78a;p=controller.git diff --git a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/messages/NetconfMessageConstants.java b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/messages/NetconfMessageConstants.java index 1a08f9063f..89285d18c0 100644 --- a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/messages/NetconfMessageConstants.java +++ b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/messages/NetconfMessageConstants.java @@ -10,13 +10,24 @@ package org.opendaylight.controller.netconf.util.messages; import com.google.common.base.Charsets; -public class NetconfMessageConstants { +public final class NetconfMessageConstants { - public static final byte[] endOfMessage = "]]>]]>".getBytes(Charsets.UTF_8); + private NetconfMessageConstants(){} + /** + * The NETCONF 1.0 old-style message separator. This is framing mechanism + * is used by default. + */ + public static final byte[] END_OF_MESSAGE = "]]>]]>".getBytes(Charsets.UTF_8); - public static final byte[] endOfChunk = "\n##\n".getBytes(Charsets.UTF_8); + // bytes - public static final int MIN_HEADER_LENGTH = 4; // bytes + public static final int MIN_HEADER_LENGTH = 4; - public static final int MAX_HEADER_LENGTH = 13; // bytes -} \ No newline at end of file + // bytes + + public static final int MAX_HEADER_LENGTH = 13; + + public static final byte[] START_OF_CHUNK = "\n#".getBytes(Charsets.UTF_8); + public static final byte[] END_OF_CHUNK = "\n##\n".getBytes(Charsets.UTF_8); + +}