Netconf message related constants moved to one place.
[controller.git] / opendaylight / netconf / netconf-util / src / main / java / org / opendaylight / controller / netconf / util / messages / NetconfMessageConstants.java
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
new file mode 100644 (file)
index 0000000..0d83a72
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.controller.netconf.util.messages;
+
+import com.google.common.base.Charsets;
+
+public class NetconfMessageConstants {
+
+    public static final byte[] endOfMessage = "]]>]]>".getBytes(Charsets.UTF_8);
+
+    public static final byte[] endOfChunk = "\n##\n".getBytes(Charsets.UTF_8);
+
+    public static final int MAX_CHUNK_SIZE = 1024; // bytes
+
+    public static final int MIN_HEADER_LENGTH = 4; // bytes
+
+    public static final int MAX_HEADER_LENGTH = 13; // bytes
+}
\ No newline at end of file