2 * Copyright 2016 ZTE Corporation.
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 * Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
19 * Licensed under the Apache License, Version 2.0 (the "License");
20 * you may not use this file except in compliance with the License.
21 * You may obtain a copy of the License at
23 * http://www.apache.org/licenses/LICENSE-2.0
25 * Unless required by applicable law or agreed to in writing, software
26 * distributed under the License is distributed on an "AS IS" BASIS,
27 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28 * See the License for the specific language governing permissions and
29 * limitations under the License.
32 package org.openo.msb;
34 import io.dropwizard.Configuration;
36 import javax.validation.Valid;
38 import org.hibernate.validator.constraints.NotEmpty;
39 import org.openo.msb.api.ConsulInfo;
40 import org.openo.msb.api.DiscoverInfo;
42 import com.fasterxml.jackson.annotation.JsonProperty;
44 public class ApiRouteAppConfig extends Configuration {
46 private String defaultWorkspace = "apiroute-works";
49 private String defaultName = "Stranger";
52 private String propertiesName="redis.properties";
55 private String propertiesDir="conf";
59 private DiscoverInfo discoverInfo;
62 private ConsulInfo consulInfo;
65 public ConsulInfo getConsulInfo() {
70 public void setConsulInfo(ConsulInfo consulInfo) {
71 this.consulInfo = consulInfo;
75 public String getPropertiesDir() {
79 public void setPropertiesDir(String propertiesDir) {
80 this.propertiesDir = propertiesDir;
83 public String getPropertiesName() {
84 return propertiesName;
87 public void setPropertiesName(String propertiesName) {
88 this.propertiesName = propertiesName;
92 public String getDefaultWorkspace() {
93 return defaultWorkspace;
97 public void setDefaultWorkspace(String defaultWorkspace) {
98 this.defaultWorkspace = defaultWorkspace;
102 public String getDefaultName() {
107 public void setDefaultName(String name) {
108 this.defaultName = name;
114 public DiscoverInfo getDiscoverInfo() {
119 public void setDiscoverInfo(DiscoverInfo discoverInfo) {
120 this.discoverInfo = discoverInfo;