Remove NetconfMessageConstants
[netconf.git] / netconf / netconf-util / src / main / java / org / opendaylight / netconf / util / messages / FramingMechanism.java
index ae7d7472e94217191d0b8303ed4f5707a96c32ae..3d5680cbda56ddf126c2057bf7bb2dc7262a1d54 100644 (file)
@@ -5,26 +5,36 @@
  * 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.netconf.util.messages;
 
+import org.eclipse.jdt.annotation.NonNullByDefault;
+
 /**
  * Known NETCONF framing mechanisms.
  */
+@NonNullByDefault
 public enum FramingMechanism {
     /**
-     * Chunked framing mechanism.
-     *
-     * @see <a href="http://tools.ietf.org/html/rfc6242#section-4.2">Chunked
-     *      framing mechanism</a>
+     * Chunk framing mechanism, as defined in
+     * <a href="https://tools.ietf.org/html/rfc6242#section-4.2">RFC6242 Section 4.2</a>.
      */
     CHUNK,
     /**
-     * End-of-Message framing mechanism.
-     *
-     * @see <a
-     *      href="http://tools.ietf.org/html/rfc6242#section-4.3">End-of-message
-     *      framing mechanism</a>
+     * End-of-Message framing mechanism, as defined in
+     * <a href="https://tools.ietf.org/html/rfc6242#section-4.3">RFC6242 Section 4.3</a>.
+     */
+    EOM;
+
+    /**
+     * String literal for a start of chunk, i.e. {@code LF HASH} part of {@code chunk} ABNF.
+     */
+    public static final String CHUNK_START_STR = "\n#";
+    /**
+     * String representing the end of a chunk, i.e. the {@code LF HASH HASH LF} production {@code end-of-chunks} ABNF.
+     */
+    public static final String CHUNK_END_STR = "\n##\n";
+    /**
+     * String representing the End-Of-Message delimiter.
      */
-    EOM
+    public static final String EOM_STR = "]]>]]>";
 }