Integrate ParserFieldsParameter with FieldsParameter
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / utils / RestconfConstants.java
index 0237a862a1170d83a0feea592e8cd9e6296cbe44..12363a9bb511c579d899b51d2d32af317264d5e5 100644 (file)
@@ -11,22 +11,19 @@ import com.google.common.base.Splitter;
 
 /**
  * Util class for Restconf constants.
- *
  */
 public final class RestconfConstants {
+    public static final Splitter SLASH_SPLITTER = Splitter.on('/');
+    public static final String BASE_URI_PATTERN = "rests";
+    public static final String NOTIF = "notif";
 
-    public static final String XML = "+xml";
-    public static final String JSON = "+json";
+    // FIXME: Remove this constant. All logic relying on this constant should instead rely on YangInstanceIdentifier
+    //        equivalent coming out of argument parsing. This may require keeping List<YangInstanceIdentifier> as the
+    //        nested path split on yang-ext:mount. This splitting needs to be based on consulting the
+    //        EffectiveModelContext and allowing it only where yang-ext:mount is actually used in models.
     public static final String MOUNT = "yang-ext:mount";
-    public static final String IDENTIFIER = "identifier";
-    public static final char SLASH = '/';
-    public static final Splitter SLASH_SPLITTER = Splitter.on(SLASH);
-    public static final String DRAFT_PATTERN = "restconf/18";
-
-    public static final CharSequence DATA_SUBSCR = "data-change-event-subscription";
-    public static final CharSequence NOTIFICATION_STREAM = "notification-stream";
 
     private RestconfConstants() {
-        throw new UnsupportedOperationException("Util class");
+        // Hidden on purpose
     }
 }
\ No newline at end of file