2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
25 package org.onap.appc.mdsal.impl;
27 * This class contains the definitions of all constant values used in the appc-dg-mdsal-store
28 * These properties are used for creating osgi bundle zip file. It also defines contents for Blueprint.xml file of bundle
30 public class Constants {
34 * Manifest attribute for OSGI Bundle Name
36 public static final String MANIFEST_ATTR_BUNDLE_NAME= "Bundle-Name";
39 * Manifest attribute for OSGI Bundle Symbolic Name
41 public static final String MANIFEST_ATTR_BUNDLE_SYMBOLIC_NAME= "Bundle-SymbolicName";
44 * Manifest attribute for OSGI Bundle Description
46 public static final String MANIFEST_ATTR_BUNDLE_DESCRIPTION= "Bundle-Description";
49 * Manifest attribute for OSGI Bundle Manifest version
51 public static final String MANIFEST_ATTR_BUNDLE_MANIFEST_VERSION= "Bundle-ManifestVersion";
54 * Manifest attribute for OSGI Bundle Version
56 public static final String MANIFEST_ATTR_BUNDLE_VERSION= "Bundle-Version";
59 * Manifest attribute for OSGI Bundle Blueprint
61 public static final String MANIFEST_ATTR_BUNDLE_BLUEPRINT= "Bundle-Blueprint";
64 * Manifest value for Mainfest Version
66 public static final String MANIFEST_VALUE_VERSION= "1.0";
69 * Manifest value for OSGI Bundle Vesion
71 public static final String MANIFEST_VALUE_BUNDLE_MAN_VERSION= "2";
74 * Manifest value for OSGI Bundle Blueprint location
76 public static final String MANIFEST_VALUE_BUNDLE_BLUEPRINT= "OSGI-INF/blueprint/blueprint.xml";
79 * Base URL for config actions exposed by RESTCONF API
82 public static final String CONFIG_URL_DEFAULT = "https://localhost:8443/restconf/config";
84 public static final String CONFIG_URL_PROPERTY = "appc.LCM.provider.url";
86 public static final String CONFIG_PATH = "/restconf/config";
89 * Restconf authentication user property name
91 public static final String CONFIG_USER_PROPERTY = "appc.LCM.provider.user";
94 * Restconf authentication password property name
96 public static final String CONFIG_PASS_PROPERTY = "appc.LCM.provider.pass";
99 * Content for blueprint.xml used while creation of OSGI bundle.
101 public static final String BLUEPRINT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
103 " Starter Blueprint Camel Definition appc-aai-adapter-blueprint\n" +
105 "<blueprint xmlns=\"http://www.osgi.org/xmlns/blueprint/v1.0.0\"\n" +
106 " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
107 " xsi:schemaLocation=\"http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd\">\n" +
112 * HTTP Header attribute for Content type - JSON
114 public static final String OPERATION_APPLICATION_JSON= " application/json";
117 * HTTP protocol used for config operations
119 public static final String OPERATION_HTTPS= "https";
122 * Constant for backslash to be used while formatting URL
124 public static final String URL_BACKSLASH ="/";