summaryrefslogtreecommitdiffstats
path: root/appc-outbound/appc-network-inventory-client/provider/src/main/java/org/onap/appc/instar/utils/InstarClientConstant.java
blob: da3672843b856fb36020051e50eff39c285e56f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*-
 * ============LICENSE_START=======================================================
 * ONAP : APPC
 * ================================================================================
 * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
 * ================================================================================
 * Copyright (C) 2017 Amdocs
 * =============================================================================
 * Modifications Copyright (C) 2019 Ericsson
 * =============================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * ============LICENSE_END=========================================================
 */

package org.onap.appc.instar.utils;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class InstarClientConstant {

    public static final String INPUT_PARAM_RESPONSE_PRIFIX = "responsePrefix";
    public static final String OUTPUT_PARAM_STATUS = "status";
    public static final String OUTPUT_PARAM_ERROR_MESSAGE = "error-message";
    public static final String OUTPUT_STATUS_SUCCESS = "success";
    public static final String OUTPUT_STATUS_FAILURE = "failure";

    public static final String INSTAR_KEYS = "instarKeys";
    public static final String INTERFACE_IP_ADDRESS = "interface-ip-address";
    public static final String SOURCE_SYSTEM_INSTAR = "INSTAR";
    public static final String VNF_TYPE = "vnf-type";
    public static final String ADDRESSFDQN = "addressfqdn";
    public static final String VNF_NAME = "vnf-name";
    public static final String INSTAR_KEY_VALUES = "INSTAR-KEY-VALUES";
    public static final String INSTAR_RESPONSE_BLOCK_NAME = "vnfConfigurationParameterDetails";
    public static final String FDQN = "fqdn";

    public static final String MOCK_INSTAR = "mock_instar";
    public static final String AFT_LATITUDE = "aft_latitude";
    public static final String AFT_LONGITUDE = "aft_latitude";
    public static final String AFT_ENVIRONMENT = "aft_environment";
    public static final String SCLD_PLATFORM = "scld_platform";
    public static final String AUTHORIZATION = "authorization";
    public static final String DME2_CLIENT_TIMEOUTMS = "dme2_client_timeoutms";
    public static final String DME2_CLIENT_SENDANDWAIT = "dme2_client_sendandwait";
    public static final String BASE_URL = "_base_url";
    public static final String HTTP_HEADERS = "_http_headers";

    public static final String V6_ADDRESS = "ipaddress-v6";
    public static final String INSTAR_V6_ADDRESS = "v6IPAddress";
    public static final String INSTAR_V6_SUBNET = "v6Subnet";
    public static final String INSTAR_V6_DEFAULT_GATEWAY = "v6DefaultGateway";

    public static final String V4_ADDRESS = "ipaddress-v4";
    public static final String INSTAR_V4_ADDRESS = "v4IPAddress";
    public static final String INSTAR_V4_SUBNET = "v4Subnet";
    public static final String INSTAR_V4_DEFAULT_GATEWAY = "v4DefaultGateway";
    public static final String SUB_CONTEXT_BYIPADDRESS = "_sub_context_byipaddress";
    public static final String SUB_CONTEXT_BYMASK = "_sub_context_bymask";
    public static final String SUB_CONTEXT = "_sub_context";
    public static final String URL_SUFFIX = "_suffix";
    public static final String VERSION = "_version";
    public static final String ENV_CONTEXT = "_env_context";
    public static final String ROUTEOFFER = "_routeoffer";
    public static final String APPC_PROPERTIES = "appc.properties";
    public static final String METHOD = "_method";
    public static final String OPERATION_GET_IPADDRESS_BY_VNF_NAME = "getIpAddressByVnf";
    public static final String OUTBOUND_PROPERTIES = "/outbound.properties";

    private InstarClientConstant() {}
    
    public static String getEnvironmentVariable(String env) {
      return System.getenv(env);
    }
    
    public static InputStream getInputStream(String file) throws FileNotFoundException {
      return new FileInputStream(file);
    }
}