2 * Copyright (c) 2016 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.restconf.nb.rfc8040.utils;
10 import com.google.common.base.Splitter;
13 * Util class for Restconf constants.
15 public final class RestconfConstants {
16 public static final Splitter SLASH_SPLITTER = Splitter.on('/');
17 public static final String BASE_URI_PATTERN = "rests";
18 public static final String NOTIF = "notif";
20 // FIXME: Remove this constant. All logic relying on this constant should instead rely on YangInstanceIdentifier
21 // equivalent coming out of argument parsing. This may require keeping List<YangInstanceIdentifier> as the
22 // nested path split on yang-ext:mount. This splitting needs to be based on consulting the
23 // EffectiveModelContext and allowing it only where yang-ext:mount is actually used in models.
24 public static final String MOUNT = "yang-ext:mount";
26 private RestconfConstants() {