12363a9bb511c579d899b51d2d32af317264d5e5
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / utils / RestconfConstants.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.restconf.nb.rfc8040.utils;
9
10 import com.google.common.base.Splitter;
11
12 /**
13  * Util class for Restconf constants.
14  */
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";
19
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";
25
26     private RestconfConstants() {
27         // Hidden on purpose
28     }
29 }