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;
38 Boolean disableHostVerification = Boolean.FALSE;
41 * Property passed to policy manager in the ClientAuth header.
43 public String getClientAuth() {
47 public void setClientAuth(String clientAuth) {
48 this.clientAuth = clientAuth;
52 * Property passed to policy manager in the BasicAuth header.
54 public String getBasicAuth() {
59 public void setBasicAuth(String basicAuth) {
60 this.basicAuth = basicAuth;
64 * URL of the policy manager.
66 public String getUrl() {
70 public void setUrl(String url) {
75 * Property passed to policy manager in the Environment header.
77 public String getEnvironment() {
81 public void setEnvironment(String environment) {
82 this.environment = environment;
86 * Property passed to policy manager in the X-ECOMP-RequestID header.
88 public String getEcompRequestId() {
89 return ecompRequestId;
92 public void setEcompRequestId(String ecompRequestId) {
93 this.ecompRequestId = ecompRequestId;
97 * Version of the policy manager -- '1' for the First version '2' for second version etc.
99 public String getVersion() {
103 public void setVersion(String version) {
104 this.version = version;
108 * Disable host name verification
110 public Boolean getDisableHostVerification() {
111 return disableHostVerification;
114 public void setDisableHostVerification(Boolean disableHostVerification) {
115 this.disableHostVerification = disableHostVerification;