2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Copyright (C) 2017 Amdocs
8 * =============================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
21 * ============LICENSE_END=========================================================
24 package org.onap.appc.mdsal.impl;
26 * This class contains the definitions of all constant values used in the appc-dg-mdsal-store
27 * These properties are used for creating osgi bundle zip file. It also defines contents for Blueprint.xml file of bundle
29 public class Constants {
33 * Manifest attribute for OSGI Bundle Name
35 public static final String MANIFEST_ATTR_BUNDLE_NAME= "Bundle-Name";
38 * Manifest attribute for OSGI Bundle Symbolic Name
40 public static final String MANIFEST_ATTR_BUNDLE_SYMBOLIC_NAME= "Bundle-SymbolicName";
43 * Manifest attribute for OSGI Bundle Description
45 public static final String MANIFEST_ATTR_BUNDLE_DESCRIPTION= "Bundle-Description";
48 * Manifest attribute for OSGI Bundle Manifest version
50 public static final String MANIFEST_ATTR_BUNDLE_MANIFEST_VERSION= "Bundle-ManifestVersion";
53 * Manifest attribute for OSGI Bundle Version
55 public static final String MANIFEST_ATTR_BUNDLE_VERSION= "Bundle-Version";
58 * Manifest attribute for OSGI Bundle Blueprint
60 public static final String MANIFEST_ATTR_BUNDLE_BLUEPRINT= "Bundle-Blueprint";
63 * Manifest value for Mainfest Version
65 public static final String MANIFEST_VALUE_VERSION= "1.0";
68 * Manifest value for OSGI Bundle Vesion
70 public static final String MANIFEST_VALUE_BUNDLE_MAN_VERSION= "2";
73 * Manifest value for OSGI Bundle Blueprint location
75 public static final String MANIFEST_VALUE_BUNDLE_BLUEPRINT= "OSGI-INF/blueprint/blueprint.xml";
78 * Base URL for config actions exposed by RESTCONF API
81 public static final String CONFIG_URL_DEFAULT = "https://localhost:8443/restconf/config";
83 public static final String CONFIG_URL_PROPERTY = "appc.LCM.provider.url";
85 public static final String CONFIG_PATH = "/restconf/config";
88 * Restconf authentication user property name
90 public static final String CONFIG_USER_PROPERTY = "appc.LCM.provider.user";
93 * Restconf authentication password property name
95 public static final String CONFIG_PASS_PROPERTY = "appc.LCM.provider.pass";
98 * Content for blueprint.xml used while creation of OSGI bundle.
100 public static final String BLUEPRINT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
102 " Starter Blueprint Camel Definition appc-aai-adapter-blueprint\n" +
104 "<blueprint xmlns=\"http://www.osgi.org/xmlns/blueprint/v1.0.0\"\n" +
105 " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
106 " xsi:schemaLocation=\"http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd\">\n" +
111 * HTTP Header attribute for Content type - JSON
113 public static final String OPERATION_APPLICATION_JSON= " application/json";
116 * HTTP protocol used for config operations
118 public static final String OPERATION_HTTPS= "https";
121 * Constant for backslash to be used while formatting URL
123 public static final String URL_BACKSLASH ="/";
125 public static final String GET_NODE_STATUS_PATH_FORMAT = "/jolokia/read/org.opendaylight.controller:Category=Shards,name=%s,type=DistributedConfigDatastore";
127 public static final String SHARD_NAME_FORMAT = "%s-shard-default-config";
129 public static final String GET_SHARD_LIST_PATH = "/jolokia/read/org.opendaylight.controller:type=DistributedConfigDatastore,Category=ShardManager,name=shard-manager-config";
131 public static final String YANG_LOADER_PATH = "/restconf/operations/mdsal-store:store-yang";
133 public static final String JSON_RESPONSE_VALUE = "value";
135 public static final String JSON_RESPONSE_MEMBER_NAME = "MemberName";
137 public static final String SELF = "self";