2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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.openecomp.sdc.common.rest.api;
23 import org.openecomp.sdc.common.api.BasicConfiguration;
25 public class RestConfigurationInfo extends BasicConfiguration {
27 private Integer readTimeoutInSec = null;
29 private Boolean ignoreCertificate = null;
31 private Integer connectionPoolSize = null;
33 private Integer connectTimeoutInSec = null;
36 * @return the readTimeoutInSec
38 public Integer getReadTimeoutInSec() {
39 return readTimeoutInSec;
43 * @param readTimeoutInSec
44 * the readTimeoutInSec to set
46 public void setReadTimeoutInSec(Integer readTimeoutInSec) {
47 this.readTimeoutInSec = readTimeoutInSec;
51 * @return the ignoreCertificate
53 public Boolean getIgnoreCertificate() {
54 return ignoreCertificate;
58 * @param ignoreCertificate
59 * the ignoreCertificate to set
61 public void setIgnoreCertificate(Boolean ignoreCertificate) {
62 this.ignoreCertificate = ignoreCertificate;
66 * @return the connectionPoolSize
68 public Integer getConnectionPoolSize() {
69 return connectionPoolSize;
73 * @param connectionPoolSize
74 * the connectionPoolSize to set
76 public void setConnectionPoolSize(Integer connectionPoolSize) {
77 this.connectionPoolSize = connectionPoolSize;
81 * @return the connectTimeoutInSec
83 public Integer getConnectTimeoutInSec() {
84 return connectTimeoutInSec;
88 * @param connectTimeoutInSec
89 * the connectTimeoutInSec to set
91 public void setConnectTimeoutInSec(Integer connectTimeoutInSec) {
92 this.connectTimeoutInSec = connectTimeoutInSec;
95 public String toString() {
97 StringBuilder builder = new StringBuilder();
99 builder.append("[ timeoutInSec=" + readTimeoutInSec + ",");
100 builder.append("connectTimeoutInSec=" + connectTimeoutInSec + ",");
101 builder.append("ignoreCertificate=" + ignoreCertificate + ",");
102 builder.append("connectionPoolSize=" + connectionPoolSize + "]");
104 return builder.toString();