Create and store Dependency model from Tosca
[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  * ONAP : APPC
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
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
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.
20  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.openecomp.appc.mdsal.impl;
26 /**
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
29  */
30 public class Constants {
31
32     private Constants(){}
33     /**
34      * Manifest attribute for OSGI Bundle Name
35      */
36     public static final String MANIFEST_ATTR_BUNDLE_NAME= "Bundle-Name";
37
38     /**
39      * Manifest attribute for OSGI Bundle Symbolic Name
40      */
41     public static final String MANIFEST_ATTR_BUNDLE_SYMBOLIC_NAME= "Bundle-SymbolicName";
42
43     /**
44      * Manifest attribute for OSGI Bundle Description
45      */
46     public static final String MANIFEST_ATTR_BUNDLE_DESCRIPTION= "Bundle-Description";
47
48     /**
49      * Manifest attribute for OSGI Bundle Manifest version
50      */
51     public static final String MANIFEST_ATTR_BUNDLE_MANIFEST_VERSION= "Bundle-ManifestVersion";
52
53     /**
54      * Manifest attribute for OSGI Bundle Version
55      */
56     public static final String MANIFEST_ATTR_BUNDLE_VERSION= "Bundle-Version";
57
58     /**
59      * Manifest attribute for OSGI Bundle Blueprint
60      */
61     public static final String MANIFEST_ATTR_BUNDLE_BLUEPRINT= "Bundle-Blueprint";
62
63     /**
64      * Manifest value for Mainfest Version
65      */
66     public static final String MANIFEST_VALUE_VERSION= "1.0";
67
68     /**
69      * Manifest value for OSGI Bundle Vesion
70      */
71     public static final String MANIFEST_VALUE_BUNDLE_MAN_VERSION= "2";
72
73     /**
74      * Manifest value for OSGI Bundle Blueprint location
75      */
76     public static final String MANIFEST_VALUE_BUNDLE_BLUEPRINT= "OSGI-INF/blueprint/blueprint.xml";
77
78     /**
79      * Base URL for config actions exposed by RESTCONF API
80      */
81
82     public static final String CONFIG_URL_DEFAULT = "https://localhost:8443/restconf/config";
83
84     public static final String CONFIG_URL_PROPERTY = "appc.LCM.provider.url";
85
86     public static final String CONFIG_PATH = "/restconf/config";
87
88     /**
89      * Restconf authentication user property name
90      */
91     public static final String CONFIG_USER_PROPERTY = "appc.LCM.provider.user";
92
93     /**
94      * Restconf authentication password property name
95      */
96     public static final String CONFIG_PASS_PROPERTY = "appc.LCM.provider.pass";
97
98     /**
99      * Content for blueprint.xml used while creation of OSGI bundle.
100      */
101     public static final String BLUEPRINT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
102             "<!--\n" +
103             "    Starter Blueprint Camel Definition appc-aai-adapter-blueprint\n" +
104             "-->\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" +
108             "\n" +
109             "</blueprint>";
110
111     /**
112      * HTTP Header attribute for Content type - JSON
113      */
114     public static final String OPERATION_APPLICATION_JSON= " application/json";
115
116     /**
117      * HTTP protocol used for config operations
118      */
119     public static final String OPERATION_HTTPS= "https";
120
121     /**
122      *  Constant for backslash to be used while formatting URL
123      */
124     public static final String URL_BACKSLASH ="/";
125 }