2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
22 package org.openecomp.appc.mdsal.impl;
24 * This class contains the definitions of all constant values used in the appc-dg-mdsal-store
25 * These properties are used for creating osgi bundle zip file. It also defines contents for Blueprint.xml file of bundle
27 public class Constants {
31 * Manifest attribute for OSGI Bundle Name
33 public static final String MANIFEST_ATTR_BUNDLE_NAME= "Bundle-Name";
36 * Manifest attribute for OSGI Bundle Symbolic Name
38 public static final String MANIFEST_ATTR_BUNDLE_SYMBOLIC_NAME= "Bundle-SymbolicName";
41 * Manifest attribute for OSGI Bundle Description
43 public static final String MANIFEST_ATTR_BUNDLE_DESCRIPTION= "Bundle-Description";
46 * Manifest attribute for OSGI Bundle Manifest version
48 public static final String MANIFEST_ATTR_BUNDLE_MANIFEST_VERSION= "Bundle-ManifestVersion";
51 * Manifest attribute for OSGI Bundle Version
53 public static final String MANIFEST_ATTR_BUNDLE_VERSION= "Bundle-Version";
56 * Manifest attribute for OSGI Bundle Blueprint
58 public static final String MANIFEST_ATTR_BUNDLE_BLUEPRINT= "Bundle-Blueprint";
61 * Manifest value for Mainfest Version
63 public static final String MANIFEST_VALUE_VERSION= "1.0";
66 * Manifest value for OSGI Bundle Vesion
68 public static final String MANIFEST_VALUE_BUNDLE_MAN_VERSION= "2";
71 * Manifest value for OSGI Bundle Blueprint location
73 public static final String MANIFEST_VALUE_BUNDLE_BLUEPRINT= "OSGI-INF/blueprint/blueprint.xml";
76 * Base URL for config actions exposed by RESTCONF API
79 public static final String CONFIG_URL = "https://localhost:8443/restconf/config";
82 * Content for blueprint.xml used while creation of OSGI bundle.
84 public static final String BLUEPRINT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
86 " Starter Blueprint Camel Definition appc-aai-adapter-blueprint\n" +
88 "<blueprint xmlns=\"http://www.osgi.org/xmlns/blueprint/v1.0.0\"\n" +
89 " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
90 " xsi:schemaLocation=\"http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd\">\n" +
95 * HTTP Header attribute for Content type - JSON
97 public static final String OPERATION_APPLICATION_JSON= " application/json";
100 * HTTP protocol used for config operations
102 public static final String OPERATION_HTTPS= "https";
105 * Constant for backslash to be used while formatting URL
107 public static final String URL_BACKSLASH ="/";