2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.ccsdk.apps.ms.neng.extinf.props;
23 import org.springframework.boot.context.properties.ConfigurationProperties;
24 import org.springframework.context.annotation.Configuration;
27 * POJO for representing properties related to policy manager.
30 @ConfigurationProperties(prefix = "policymgr")
31 public class PolicyManagerProps {
37 String ecompRequestId;
40 * Property passed to policy manager in the ClientAuth header.
42 public String getClientAuth() {
46 public void setClientAuth(String clientAuth) {
47 this.clientAuth = clientAuth;
51 * Property passed to policy manager in the BasicAuth header.
53 public String getBasicAuth() {
57 public void setBasicAuth(String basicAuth) {
58 this.basicAuth = basicAuth;
62 * URL of the policy manager.
64 public String getUrl() {
68 public void setUrl(String url) {
73 * Property passed to policy manager in the Environment header.
75 public String getEnvironment() {
79 public void setEnvironment(String environment) {
80 this.environment = environment;
84 * Property passed to policy manager in the X-ECOMP-RequestID header.
86 public String getEcompRequestId() {
87 return ecompRequestId;
90 public void setEcompRequestId(String ecompRequestId) {
91 this.ecompRequestId = ecompRequestId;
95 * Version of the policy manager -- '1' for the First version '2' for second version etc.
97 public String getVersion() {
101 public void setVersion(String version) {
102 this.version = version;