All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.controller.netconf.util.messages.NetconfMessageConstants Maven / Gradle / Ivy

There is a newer version: 0.3.4-Lithium-SR4
Show newest version
/*
 * 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 final class NetconfMessageConstants {

    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);

    // bytes

    public static final int MIN_HEADER_LENGTH = 4;

    // bytes

    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);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy