2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright (C) 2017 Amdocs
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=========================================================
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.openecomp.appc.mdsal.impl;
25 * This class contains the definitions of all constant values used in the appc-dg-mdsal-store
26 * These properties are used for creating osgi bundle zip file. It also defines contents for Blueprint.xml file of bundle
28 public class Constants {
32 * Manifest attribute for OSGI Bundle Name
34 public static final String MANIFEST_ATTR_BUNDLE_NAME= "Bundle-Name";
37 * Manifest attribute for OSGI Bundle Symbolic Name
39 public static final String MANIFEST_ATTR_BUNDLE_SYMBOLIC_NAME= "Bundle-SymbolicName";
42 * Manifest attribute for OSGI Bundle Description
44 public static final String MANIFEST_ATTR_BUNDLE_DESCRIPTION= "Bundle-Description";
47 * Manifest attribute for OSGI Bundle Manifest version
49 public static final String MANIFEST_ATTR_BUNDLE_MANIFEST_VERSION= "Bundle-ManifestVersion";
52 * Manifest attribute for OSGI Bundle Version
54 public static final String MANIFEST_ATTR_BUNDLE_VERSION= "Bundle-Version";
57 * Manifest attribute for OSGI Bundle Blueprint
59 public static final String MANIFEST_ATTR_BUNDLE_BLUEPRINT= "Bundle-Blueprint";
62 * Manifest value for Mainfest Version
64 public static final String MANIFEST_VALUE_VERSION= "1.0";
67 * Manifest value for OSGI Bundle Vesion
69 public static final String MANIFEST_VALUE_BUNDLE_MAN_VERSION= "2";
72 * Manifest value for OSGI Bundle Blueprint location
74 public static final String MANIFEST_VALUE_BUNDLE_BLUEPRINT= "OSGI-INF/blueprint/blueprint.xml";
77 * Base URL for config actions exposed by RESTCONF API
80 public static final String CONFIG_URL = "https://localhost:8443/restconf/config";
83 * Content for blueprint.xml used while creation of OSGI bundle.
85 public static final String BLUEPRINT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
87 " Starter Blueprint Camel Definition appc-aai-adapter-blueprint\n" +
89 "<blueprint xmlns=\"http://www.osgi.org/xmlns/blueprint/v1.0.0\"\n" +
90 " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
91 " xsi:schemaLocation=\"http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd\">\n" +
96 * HTTP Header attribute for Content type - JSON
98 public static final String OPERATION_APPLICATION_JSON= " application/json";
101 * HTTP protocol used for config operations
103 public static final String OPERATION_HTTPS= "https";
106 * Constant for backslash to be used while formatting URL
108 public static final String URL_BACKSLASH ="/";