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 the readTimeoutInSec to set
45 public void setReadTimeoutInSec(Integer readTimeoutInSec) {
46 this.readTimeoutInSec = readTimeoutInSec;
50 * @return the ignoreCertificate
52 public Boolean getIgnoreCertificate() {
53 return ignoreCertificate;
57 * @param ignoreCertificate the ignoreCertificate to set
59 public void setIgnoreCertificate(Boolean ignoreCertificate) {
60 this.ignoreCertificate = ignoreCertificate;
64 * @return the connectionPoolSize
66 public Integer getConnectionPoolSize() {
67 return connectionPoolSize;
71 * @param connectionPoolSize the connectionPoolSize to set
73 public void setConnectionPoolSize(Integer connectionPoolSize) {
74 this.connectionPoolSize = connectionPoolSize;
78 * @return the connectTimeoutInSec
80 public Integer getConnectTimeoutInSec() {
81 return connectTimeoutInSec;
85 * @param connectTimeoutInSec the connectTimeoutInSec to set
87 public void setConnectTimeoutInSec(Integer connectTimeoutInSec) {
88 this.connectTimeoutInSec = connectTimeoutInSec;
91 public String toString() {
93 StringBuilder builder = new StringBuilder();
95 builder.append("[ timeoutInSec=" + readTimeoutInSec + ",");
96 builder.append("connectTimeoutInSec=" + connectTimeoutInSec + ",");
97 builder.append("ignoreCertificate=" + ignoreCertificate + ",");
98 builder.append("connectionPoolSize=" + connectionPoolSize + "]");
100 return builder.toString();