2 * Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.openo.msb;
19 import io.dropwizard.Configuration;
21 import javax.validation.Valid;
23 import org.hibernate.validator.constraints.NotEmpty;
24 import org.openo.msb.api.ConsulInfo;
25 import org.openo.msb.api.DiscoverInfo;
27 import com.fasterxml.jackson.annotation.JsonProperty;
29 public class ApiRouteAppConfig extends Configuration {
31 private String defaultWorkspace = "apiroute-works";
34 private String defaultName = "Stranger";
37 private String propertiesName="redis.properties";
40 private String propertiesDir="conf";
44 private DiscoverInfo discoverInfo;
47 private ConsulInfo consulInfo;
50 public ConsulInfo getConsulInfo() {
55 public void setConsulInfo(ConsulInfo consulInfo) {
56 this.consulInfo = consulInfo;
60 public String getPropertiesDir() {
64 public void setPropertiesDir(String propertiesDir) {
65 this.propertiesDir = propertiesDir;
68 public String getPropertiesName() {
69 return propertiesName;
72 public void setPropertiesName(String propertiesName) {
73 this.propertiesName = propertiesName;
77 public String getDefaultWorkspace() {
78 return defaultWorkspace;
82 public void setDefaultWorkspace(String defaultWorkspace) {
83 this.defaultWorkspace = defaultWorkspace;
87 public String getDefaultName() {
92 public void setDefaultName(String name) {
93 this.defaultName = name;
99 public DiscoverInfo getDiscoverInfo() {
104 public void setDiscoverInfo(DiscoverInfo discoverInfo) {
105 this.discoverInfo = discoverInfo;