Merging in bug fixes
[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 = "https://localhost:8443/restconf/config";
83     public static final String CONFIG_URL_DEFAULT = "https://localhost:8443/restconf/config";
84
85     public static final String CONFIG_URL_PROPERTY = "appc.LCM.provider.url";
86
87     public static final String CONFIG_PATH = "/restconf/config";
88
89     /**
90      * Restconf authentication user property name
91      */
92     public static final String CONFIG_USER_PROPERTY = "appc.LCM.provider.user";
93
94     /**
95      * Restconf authentication password property name
96      */
97     public static final String CONFIG_PASS_PROPERTY = "appc.LCM.provider.pass";
98
99     /**
100      * Content for blueprint.xml used while creation of OSGI bundle.
101      */
102     public static final String BLUEPRINT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
103             "<!--\n" +
104             "    Starter Blueprint Camel Definition appc-aai-adapter-blueprint\n" +
105             "-->\n" +
106             "<blueprint xmlns=\"http://www.osgi.org/xmlns/blueprint/v1.0.0\"\n" +
107             "                       xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
108             "                       xsi:schemaLocation=\"http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd\">\n" +
109             "\n" +
110             "</blueprint>";
111
112     /**
113      * HTTP Header attribute for Content type - JSON
114      */
115     public static final String OPERATION_APPLICATION_JSON= " application/json";
116
117     /**
118      * HTTP protocol used for config operations
119      */
120     public static final String OPERATION_HTTPS= "https";
121
122     /**
123      *  Constant for backslash to be used while formatting URL
124      */
125     public static final String URL_BACKSLASH ="/";
126 }