Bug 4883 - implement query parameter - filter
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / restconf / restful / utils / RestconfDataServiceConstant.java
index 19bb87d863fd2272c28a38f0969d6cdd4f7eea44..e8d1b327910e598a9f25a37d8e0ed850b048a831 100644 (file)
@@ -21,7 +21,6 @@ import org.opendaylight.yangtools.yang.common.QNameModule;
  */
 public final class RestconfDataServiceConstant {
 
-    public static final String CONTENT = "content";
     public static final QName NETCONF_BASE_QNAME;
     static {
         try {
@@ -43,10 +42,21 @@ public final class RestconfDataServiceConstant {
      *
      */
     public final class ReadData {
+        // URI parameters
+        public static final String CONTENT = "content";
+        public static final String DEPTH = "depth";
+        public static final String FIELDS = "fields";
 
+        // content values
         public static final String CONFIG = "config";
-        public static final String NONCONFIG = "nonconfig";
         public static final String ALL = "all";
+        public static final String NONCONFIG = "nonconfig";
+
+        // depth values
+        public static final String UNBOUNDED = "unbounded";
+        public static final int MIN_DEPTH = 1;
+        public static final int MAX_DEPTH = 65535;
+
         public static final String READ_TYPE_TX = "READ";
 
         private ReadData() {
@@ -79,4 +89,28 @@ public final class RestconfDataServiceConstant {
             throw new UnsupportedOperationException("Util class.");
         }
     }
+
+    /**
+     * Constants for data to delete
+     *
+     */
+    public final class DeleteData {
+        public static final String DELETE_TX_TYPE = "DELETE";
+
+        private DeleteData() {
+            throw new UnsupportedOperationException("Util class.");
+        }
+    }
+
+    /**
+     * Constants for data to yang patch
+     *
+     */
+    public final class PatchData {
+        public static final String PATCH_TX_TYPE = "PATCH";
+
+        private PatchData() {
+            throw new UnsupportedOperationException("Util class.");
+        }
+    }
 }