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