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 MAX_CHUNK_SIZE = 1024; // bytes
+ public static final int MIN_HEADER_LENGTH = 4;
- public static final int MIN_HEADER_LENGTH = 4; // bytes
+ // bytes
- public static final int MAX_HEADER_LENGTH = 13; // bytes
-}
\ No newline at end of file
+ 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);
+
+}