* 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 static java.nio.charset.StandardCharsets.UTF_8;
+import org.eclipse.jdt.annotation.NonNullByDefault;
+@NonNullByDefault
public final class NetconfMessageConstants {
-
- private NetconfMessageConstants(){}
-
/**
- * The NETCONF 1.0 old-style message separator. This is framing mechanism
- * is used by default.
+ * The NETCONF 1.0 old-style message separator. This is framing mechanism is used by default.
*/
- public static final byte[] END_OF_MESSAGE = "]]>]]>".getBytes(UTF_8);
+ public static final String END_OF_MESSAGE = "]]>]]>";
// bytes
-
+ @Deprecated(since = "3.0.6", forRemoval = true)
public static final int MIN_HEADER_LENGTH = 4;
// bytes
-
+ @Deprecated(since = "3.0.6", forRemoval = true)
public static final int MAX_HEADER_LENGTH = 13;
- public static final byte[] START_OF_CHUNK = "\n#".getBytes(UTF_8);
- public static final byte[] END_OF_CHUNK = "\n##\n".getBytes(UTF_8);
+ public static final String START_OF_CHUNK = "\n#";
+ public static final String END_OF_CHUNK = "\n##\n";
+ private NetconfMessageConstants() {
+ // Hidden on purpose
+ }
}