Applying license changes to all files
[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
84     /**
85      * Content for blueprint.xml used while creation of OSGI bundle.
86      */
87     public static final String BLUEPRINT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
88             "<!--\n" +
89             "    Starter Blueprint Camel Definition appc-aai-adapter-blueprint\n" +
90             "-->\n" +
91             "<blueprint xmlns=\"http://www.osgi.org/xmlns/blueprint/v1.0.0\"\n" +
92             "                       xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
93             "                       xsi:schemaLocation=\"http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd\">\n" +
94             "\n" +
95             "</blueprint>";
96
97     /**
98      * HTTP Header attribute for Content type - JSON
99      */
100     public static final String OPERATION_APPLICATION_JSON= " application/json";
101
102     /**
103      * HTTP protocol used for config operations
104      */
105     public static final String OPERATION_HTTPS= "https";
106
107     /**
108      *  Constant for backslash to be used while formatting URL
109      */
110     public static final String URL_BACKSLASH ="/";
111 }