2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.netconf.util.messages;
10 import org.eclipse.jdt.annotation.NonNullByDefault;
13 * Known NETCONF framing mechanisms.
16 public enum FramingMechanism {
18 * Chunk framing mechanism, as defined in
19 * <a href="https://tools.ietf.org/html/rfc6242#section-4.2">RFC6242 Section 4.2</a>.
23 * End-of-Message framing mechanism, as defined in
24 * <a href="https://tools.ietf.org/html/rfc6242#section-4.3">RFC6242 Section 4.3</a>.
29 * String literal for a start of chunk, i.e. {@code LF HASH} part of {@code chunk} ABNF.
31 public static final String CHUNK_START_STR = "\n#";
33 * String representing the end of a chunk, i.e. the {@code LF HASH HASH LF} production {@code end-of-chunks} ABNF.
35 public static final String CHUNK_END_STR = "\n##\n";
37 * String representing the End-Of-Message delimiter.
39 public static final String EOM_STR = "]]>]]>";