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.rests.utils;
11 import org.opendaylight.yangtools.yang.common.QName;
12 import org.opendaylight.yangtools.yang.common.QNameModule;
15 * Constants for RestconfDataService.
18 public final class RestconfDataServiceConstant {
20 public static final QName NETCONF_BASE_QNAME = QName.create(QNameModule.create(URI.create(PutData.NETCONF_BASE)),
21 PutData.NETCONF_BASE_PAYLOAD_NAME);
23 private RestconfDataServiceConstant() {
24 throw new UnsupportedOperationException("Util class.");
28 * Constants for read data.
31 public final class ReadData {
33 public static final String CONTENT = "content";
34 public static final String DEPTH = "depth";
35 public static final String FIELDS = "fields";
38 public static final String CONFIG = "config";
39 public static final String ALL = "all";
40 public static final String NONCONFIG = "nonconfig";
43 public static final String UNBOUNDED = "unbounded";
44 public static final int MIN_DEPTH = 1;
45 public static final int MAX_DEPTH = 65535;
47 public static final String READ_TYPE_TX = "READ";
48 public static final String WITH_DEFAULTS = "with-defaults";
51 throw new UnsupportedOperationException("Util class.");
56 * Constants for data to put.
59 public final class PutData {
60 public static final String NETCONF_BASE = "urn:ietf:params:xml:ns:netconf:base:1.0";
61 public static final String NETCONF_BASE_PAYLOAD_NAME = "data";
62 public static final String PUT_TX_TYPE = "PUT";
65 throw new UnsupportedOperationException("Util class.");
70 * Constants for data to post.
73 public final class PostData {
74 public static final String POST_TX_TYPE = "POST";
77 throw new UnsupportedOperationException("Util class.");
82 * Constants for data to delete.
85 public final class DeleteData {
86 public static final String DELETE_TX_TYPE = "DELETE";
88 private DeleteData() {
89 throw new UnsupportedOperationException("Util class.");
94 * Constants for data to yang patch.
97 public final class PatchData {
98 public static final String PATCH_TX_TYPE = "Patch";
100 private PatchData() {
101 throw new UnsupportedOperationException("Util class.");