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=8bd6b8865933d7191a063055834ce3fb98b0bbe4;hb=6dae254dbc2940d1f0f372d65d69b0e0dda415fe;hp=0d83a72bd39b9f8e7fecdd7d9eb39d87f18ed6ef;hpb=3a186f6f164122ab47f816b5761ef526f939f946;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 0d83a72bd3..8bd6b88659 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 @@ -11,14 +11,19 @@ package org.opendaylight.controller.netconf.util.messages; import com.google.common.base.Charsets; public class 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[] endOfMessage = "]]>]]>".getBytes(Charsets.UTF_8); + // bytes - public static final byte[] endOfChunk = "\n##\n".getBytes(Charsets.UTF_8); + public static final int MIN_HEADER_LENGTH = 4; - public static final int MAX_CHUNK_SIZE = 1024; // bytes + // bytes - public static final int MIN_HEADER_LENGTH = 4; // bytes + public static final int MAX_HEADER_LENGTH = 13; - public static final int MAX_HEADER_LENGTH = 13; // bytes -} \ No newline at end of file + public static final byte[] END_OF_CHUNK = "\n##\n".getBytes(Charsets.UTF_8); +}