001/** 002 * Copyright (c) 2015-2022, Michael Yang 杨福海 (fuhai999@gmail.com). 003 * <p> 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * <p> 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * <p> 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package io.jboot.support.swagger; 017 018import io.jboot.app.config.annotation.ConfigModel; 019import io.jboot.utils.StrUtil; 020 021@ConfigModel(prefix = "jboot.swagger") 022public class JbootSwaggerConfig { 023 024 private String path; 025 026 private String title; 027 private String description; 028 private String version; 029 private String termsOfService; 030 private String host; 031 032 private String contactName; 033 private String contactEmail; 034 private String contactUrl; 035 036 private String licenseName; 037 private String licenseUrl; 038 039 public String getPath() { 040 return path; 041 } 042 043 public void setPath(String path) { 044 this.path = path; 045 } 046 047 public boolean isConfigOk() { 048 return StrUtil.isNotBlank(path); 049 } 050 051 public String getTitle() { 052 return title; 053 } 054 055 public void setTitle(String title) { 056 this.title = title; 057 } 058 059 public String getDescription() { 060 return description; 061 } 062 063 public void setDescription(String description) { 064 this.description = description; 065 } 066 067 public String getVersion() { 068 return version; 069 } 070 071 public void setVersion(String version) { 072 this.version = version; 073 } 074 075 public String getTermsOfService() { 076 return termsOfService; 077 } 078 079 public void setTermsOfService(String termsOfService) { 080 this.termsOfService = termsOfService; 081 } 082 083 public String getHost() { 084 return host; 085 } 086 087 public void setHost(String host) { 088 this.host = host; 089 } 090 091 public String getContactName() { 092 return contactName; 093 } 094 095 public void setContactName(String contactName) { 096 this.contactName = contactName; 097 } 098 099 public String getContactEmail() { 100 return contactEmail; 101 } 102 103 public void setContactEmail(String contactEmail) { 104 this.contactEmail = contactEmail; 105 } 106 107 public String getContactUrl() { 108 return contactUrl; 109 } 110 111 public void setContactUrl(String contactUrl) { 112 this.contactUrl = contactUrl; 113 } 114 115 public String getLicenseName() { 116 return licenseName; 117 } 118 119 public void setLicenseName(String licenseName) { 120 this.licenseName = licenseName; 121 } 122 123 public String getLicenseUrl() { 124 return licenseUrl; 125 } 126 127 public void setLicenseUrl(String licenseUrl) { 128 this.licenseUrl = licenseUrl; 129 } 130} 131 132 133