1 /*******************************************************************************
2 * Copyright 2016-2017 ZTE, Inc. and others.
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 * in compliance with the License. You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 * or implied. See the License for the specific language governing permissions and limitations under
13 ******************************************************************************/
15 * Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
17 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
18 * in compliance with the License. You may obtain a copy of the License at
20 * http://www.apache.org/licenses/LICENSE-2.0
22 * Unless required by applicable law or agreed to in writing, software distributed under the License
23 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
24 * or implied. See the License for the specific language governing permissions and limitations under
28 package org.onap.msb.apiroute;
30 import javax.validation.Valid;
32 import org.hibernate.validator.constraints.NotEmpty;
33 import org.onap.msb.apiroute.api.DiscoverInfo;
35 import com.fasterxml.jackson.annotation.JsonProperty;
37 import io.dropwizard.Configuration;
39 public class ApiRouteAppConfig extends Configuration {
41 private String defaultWorkspace = "apiroute-works";
44 private String defaultName = "Stranger";
48 private DiscoverInfo discoverInfo;
52 public String getDefaultWorkspace() {
53 return defaultWorkspace;
57 public void setDefaultWorkspace(String defaultWorkspace) {
58 this.defaultWorkspace = defaultWorkspace;
62 public String getDefaultName() {
67 public void setDefaultName(String name) {
68 this.defaultName = name;
74 public DiscoverInfo getDiscoverInfo() {
79 public void setDiscoverInfo(DiscoverInfo discoverInfo) {
80 this.discoverInfo = discoverInfo;