Merge of new rebased code
[appc.git] / appc-dg / appc-dg-shared / appc-dg-mdsal-store / src / main / java / org / openecomp / appc / mdsal / impl / Constants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                                              reserved.
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
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
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  */
21
22 package org.openecomp.appc.mdsal.impl;
23 /**
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
26 */
27 public class Constants {
28
29     private Constants(){}
30     /**
31      * Manifest attribute for OSGI Bundle Name
32      */
33     public static final String MANIFEST_ATTR_BUNDLE_NAME= "Bundle-Name";
34
35     /**
36      * Manifest attribute for OSGI Bundle Symbolic Name
37      */
38     public static final String MANIFEST_ATTR_BUNDLE_SYMBOLIC_NAME= "Bundle-SymbolicName";
39
40     /**
41      * Manifest attribute for OSGI Bundle Description
42      */
43     public static final String MANIFEST_ATTR_BUNDLE_DESCRIPTION= "Bundle-Description";
44
45     /**
46      * Manifest attribute for OSGI Bundle Manifest version
47      */
48     public static final String MANIFEST_ATTR_BUNDLE_MANIFEST_VERSION= "Bundle-ManifestVersion";
49
50     /**
51      * Manifest attribute for OSGI Bundle Version
52      */
53     public static final String MANIFEST_ATTR_BUNDLE_VERSION= "Bundle-Version";
54
55     /**
56      * Manifest attribute for OSGI Bundle Blueprint
57      */
58     public static final String MANIFEST_ATTR_BUNDLE_BLUEPRINT= "Bundle-Blueprint";
59
60     /**
61      * Manifest value for Mainfest Version
62      */
63     public static final String MANIFEST_VALUE_VERSION= "1.0";
64
65     /**
66      * Manifest value for OSGI Bundle Vesion
67      */
68     public static final String MANIFEST_VALUE_BUNDLE_MAN_VERSION= "2";
69
70     /**
71      * Manifest value for OSGI Bundle Blueprint location
72      */
73     public static final String MANIFEST_VALUE_BUNDLE_BLUEPRINT= "OSGI-INF/blueprint/blueprint.xml";
74
75     /**
76      * Base URL for config actions exposed by RESTCONF API
77      */
78
79     public static final String CONFIG_URL = "https://localhost:8443/restconf/config";
80
81     /**
82      * Content for blueprint.xml used while creation of OSGI bundle.
83      */
84     public static final String BLUEPRINT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
85             "<!--\n" +
86             "    Starter Blueprint Camel Definition appc-aai-adapter-blueprint\n" +
87             "-->\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" +
91             "\n" +
92             "</blueprint>";
93
94     /**
95      * HTTP Header attribute for Content type - JSON
96      */
97     public static final String OPERATION_APPLICATION_JSON= " application/json";
98
99     /**
100      * HTTP protocol used for config operations
101      */
102     public static final String OPERATION_HTTPS= "https";
103
104     /**
105      *  Constant for backslash to be used while formatting URL
106      */
107     public static final String URL_BACKSLASH ="/";
108 }