@Lazy(value=false) @Configuration(proxyBeanMethods=false) @ConfigurationProperties(prefix="springdoc") @ConditionalOnProperty(name="springdoc.api-docs.enabled", matchIfMissing=true) public class SpringDocConfigProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SpringDocConfigProperties.ApiDocs
The type Api docs.
|
static class |
SpringDocConfigProperties.Cache
The type Cache.
|
static class |
SpringDocConfigProperties.GroupConfig
The type Group config.
|
static class |
SpringDocConfigProperties.Groups
The type Groups.
|
static class |
SpringDocConfigProperties.ModelConverters
The type Model converters.
|
static class |
SpringDocConfigProperties.SortConverter
The type Sort converter.
|
static class |
SpringDocConfigProperties.Webjars
The type Webjars.
|
Constructor and Description |
---|
SpringDocConfigProperties() |
Modifier and Type | Method and Description |
---|---|
void |
addGroupConfig(SpringDocConfigProperties.GroupConfig groupConfigs)
Add group config.
|
SpringDocConfigProperties.ApiDocs |
getApiDocs()
Gets api docs.
|
SpringDocConfigProperties.Cache |
getCache()
Gets cache.
|
List<String> |
getConsumesToMatch()
Gets consumes to match.
|
String |
getDefaultConsumesMediaType()
Gets default consumes media type.
|
String |
getDefaultProducesMediaType()
Gets default produces media type.
|
Set<SpringDocConfigProperties.GroupConfig> |
getGroupConfigs()
Gets group configs.
|
List<String> |
getHeadersToMatch()
Gets headers to match.
|
SpringDocConfigProperties.ModelConverters |
getModelConverters()
Gets model converters.
|
Boolean |
getOverrideWithGenericResponse()
Gets override with generic response.
|
List<String> |
getPackagesToExclude()
Gets packages to exclude.
|
List<String> |
getPackagesToScan()
Gets packages to scan.
|
List<String> |
getPathsToExclude()
Gets paths to exclude.
|
List<String> |
getPathsToMatch()
Gets paths to match.
|
List<String> |
getPreLoadingLocales()
locale list to pre-loading.
|
List<String> |
getProducesToMatch()
Gets produces to match.
|
SpringDocConfigProperties.SortConverter |
getSortConverter()
Gets sort converter.
|
io.swagger.v3.oas.models.SpecVersion |
getSpecVersion()
Gets spec version.
|
SpringDocConfigProperties.Webjars |
getWebjars()
Gets webjars.
|
boolean |
isAutoTagClasses()
Is auto tag classes boolean.
|
boolean |
isCacheDisabled()
Is cache disabled boolean.
|
boolean |
isDefaultFlatParamObject()
Is default flat param object boolean.
|
boolean |
isDefaultOverrideWithGenericResponse()
Gets default override with generic response.
|
boolean |
isDefaultSupportFormData()
Is default support form data boolean.
|
boolean |
isDisableI18n()
Is disable i 18 n boolean.
|
boolean |
isEnableDataRest()
Is enable data rest boolean.
|
boolean |
isEnableGroovy()
Is enable groovy boolean.
|
boolean |
isEnableHateoas()
Is enable hateoas boolean.
|
boolean |
isEnableJavadoc()
Is enable javadoc boolean.
|
boolean |
isEnableKotlin()
Is enable kotlin boolean.
|
boolean |
isEnableSpringSecurity()
Is enable spring security boolean.
|
boolean |
isModelAndViewAllowed()
Is model and view allowed boolean.
|
boolean |
isNullableRequestParameterEnabled()
Is nullable request parameter enabled boolean.
|
boolean |
isOpenapi31()
Is openapi 31 boolean.
|
boolean |
isOverrideWithGenericResponse()
Is override with generic response boolean.
|
boolean |
isPreLoadingEnabled()
Is pre loading enabled boolean.
|
boolean |
isRemoveBrokenReferenceDefinitions()
Is remove broken reference definitions boolean.
|
boolean |
isShowActuator()
Is show actuator boolean.
|
boolean |
isShowLoginEndpoint()
Is show login endpoint boolean.
|
boolean |
isShowOauth2Endpoints()
Is show oauth 2 endpoints boolean.
|
boolean |
isShowSpringCloudFunctions()
Is show spring cloud functions boolean.
|
boolean |
isUseFqn()
Is use fqn boolean.
|
boolean |
isUseManagementPort()
Is use management port boolean.
|
boolean |
isWriterWithDefaultPrettyPrinter()
Is writer with default pretty printer boolean.
|
boolean |
isWriterWithOrderByKeys()
Is writer wither order by keys boolean.
|
void |
setApiDocs(SpringDocConfigProperties.ApiDocs apiDocs)
Sets api docs.
|
void |
setAutoTagClasses(boolean autoTagClasses)
Sets auto tag classes.
|
void |
setCache(SpringDocConfigProperties.Cache cache)
Sets cache.
|
void |
setConsumesToMatch(List<String> consumesToMatch)
Sets consumes to match.
|
void |
setDefaultConsumesMediaType(String defaultConsumesMediaType)
Sets default consumes media type.
|
void |
setDefaultFlatParamObject(boolean defaultFlatParamObject)
Sets default flat param object.
|
void |
setDefaultProducesMediaType(String defaultProducesMediaType)
Sets default produces media type.
|
void |
setDefaultSupportFormData(boolean defaultSupportFormData)
Sets default support form data.
|
void |
setDisableI18n(boolean disableI18n)
Sets disable i 18 n.
|
void |
setEnableDataRest(boolean enableDataRest)
Sets enable data rest.
|
void |
setEnableGroovy(boolean enableGroovy)
Sets enable groovy.
|
void |
setEnableHateoas(boolean enableHateoas)
Sets enable hateoas.
|
void |
setEnableJavadoc(boolean enableJavadoc)
Sets enable javadoc.
|
void |
setEnableKotlin(boolean enableKotlin)
Sets enable kotlin.
|
void |
setEnableSpringSecurity(boolean enableSpringSecurity)
Sets enable spring security.
|
void |
setGroupConfigs(Set<SpringDocConfigProperties.GroupConfig> groupConfigs)
Sets group configs.
|
void |
setHeadersToMatch(List<String> headersToMatch)
Sets headers to match.
|
void |
setModelAndViewAllowed(boolean modelAndViewAllowed)
Sets model and view allowed.
|
void |
setModelConverters(SpringDocConfigProperties.ModelConverters modelConverters)
Sets model converters.
|
void |
setNullableRequestParameterEnabled(boolean nullableRequestParameterEnabled)
Sets nullable request parameter enabled.
|
void |
setOverrideWithGenericResponse(boolean overrideWithGenericResponse)
Sets override with generic response.
|
void |
setOverrideWithGenericResponse(Boolean overrideWithGenericResponse)
Sets override with generic response.
|
void |
setPackagesToExclude(List<String> packagesToExclude)
Sets packages to exclude.
|
void |
setPackagesToScan(List<String> packagesToScan)
Sets packages to scan.
|
void |
setPathsToExclude(List<String> pathsToExclude)
Sets paths to exclude.
|
void |
setPathsToMatch(List<String> pathsToMatch)
Sets paths to match.
|
void |
setPreLoadingEnabled(boolean preLoadingEnabled)
Sets locale list to pre-loading.
|
void |
setPreLoadingLocales(List<String> preLoadingLocales)
Sets pre loading locales.
|
void |
setProducesToMatch(List<String> producesToMatch)
Sets produces to match.
|
void |
setRemoveBrokenReferenceDefinitions(boolean removeBrokenReferenceDefinitions)
Sets remove broken reference definitions.
|
void |
setShowActuator(boolean showActuator)
Sets show actuator.
|
void |
setShowLoginEndpoint(boolean showLoginEndpoint)
Sets show login endpoint.
|
void |
setShowOauth2Endpoints(boolean showOauth2Endpoints)
Sets show oauth 2 endpoints.
|
void |
setShowSpringCloudFunctions(boolean showSpringCloudFunctions)
Sets show spring cloud functions.
|
void |
setSortConverter(SpringDocConfigProperties.SortConverter sortConverter)
Sets sort converter.
|
void |
setUseFqn(boolean useFqn)
Sets use fqn.
|
void |
setUseManagementPort(boolean useManagementPort)
Sets use management port.
|
void |
setWebjars(SpringDocConfigProperties.Webjars webjars)
Sets webjars.
|
void |
setWriterWithDefaultPrettyPrinter(boolean writerWithDefaultPrettyPrinter)
Sets writer with default pretty printer.
|
void |
setWriterWithOrderByKeys(boolean writerWithOrderByKeys)
Sets writer wither order by keys.
|
public Boolean getOverrideWithGenericResponse()
public void setOverrideWithGenericResponse(Boolean overrideWithGenericResponse)
overrideWithGenericResponse
- the override with generic responsepublic boolean isNullableRequestParameterEnabled()
public void setNullableRequestParameterEnabled(boolean nullableRequestParameterEnabled)
nullableRequestParameterEnabled
- the nullable request parameter enabledpublic boolean isDefaultSupportFormData()
public void setDefaultSupportFormData(boolean defaultSupportFormData)
defaultSupportFormData
- the default support form datapublic boolean isDefaultFlatParamObject()
public void setDefaultFlatParamObject(boolean defaultFlatParamObject)
defaultFlatParamObject
- the default flat param objectpublic SpringDocConfigProperties.SortConverter getSortConverter()
public void setSortConverter(SpringDocConfigProperties.SortConverter sortConverter)
sortConverter
- the sort converterpublic boolean isEnableDataRest()
public void setEnableDataRest(boolean enableDataRest)
enableDataRest
- the enable data restpublic boolean isEnableHateoas()
public void setEnableHateoas(boolean enableHateoas)
enableHateoas
- the enable hateoaspublic boolean isEnableKotlin()
public void setEnableKotlin(boolean enableKotlin)
enableKotlin
- the enable kotlinpublic boolean isEnableSpringSecurity()
public void setEnableSpringSecurity(boolean enableSpringSecurity)
enableSpringSecurity
- the enable spring securitypublic boolean isEnableJavadoc()
public void setEnableJavadoc(boolean enableJavadoc)
enableJavadoc
- the enable javadocpublic boolean isEnableGroovy()
public void setEnableGroovy(boolean enableGroovy)
enableGroovy
- the enable groovypublic boolean isShowSpringCloudFunctions()
public void setShowSpringCloudFunctions(boolean showSpringCloudFunctions)
showSpringCloudFunctions
- the show spring cloud functionspublic SpringDocConfigProperties.ModelConverters getModelConverters()
public void setModelConverters(SpringDocConfigProperties.ModelConverters modelConverters)
modelConverters
- the model converterspublic boolean isUseManagementPort()
public void setUseManagementPort(boolean useManagementPort)
useManagementPort
- the use management portpublic List<String> getProducesToMatch()
public void setProducesToMatch(List<String> producesToMatch)
producesToMatch
- the produces to matchpublic List<String> getHeadersToMatch()
public void setHeadersToMatch(List<String> headersToMatch)
headersToMatch
- the headers to matchpublic List<String> getConsumesToMatch()
public void setConsumesToMatch(List<String> consumesToMatch)
consumesToMatch
- the consumes to matchpublic boolean isUseFqn()
public void setUseFqn(boolean useFqn)
useFqn
- the use fqnpublic boolean isAutoTagClasses()
public void setAutoTagClasses(boolean autoTagClasses)
autoTagClasses
- the auto tag classespublic boolean isModelAndViewAllowed()
public void setModelAndViewAllowed(boolean modelAndViewAllowed)
modelAndViewAllowed
- the model and view allowedpublic List<String> getPackagesToExclude()
public void setPackagesToExclude(List<String> packagesToExclude)
packagesToExclude
- the packages to excludepublic List<String> getPathsToExclude()
public void setPathsToExclude(List<String> pathsToExclude)
pathsToExclude
- the paths to excludepublic boolean isShowLoginEndpoint()
public void setShowLoginEndpoint(boolean showLoginEndpoint)
showLoginEndpoint
- the show login endpointpublic List<String> getPackagesToScan()
public void setPackagesToScan(List<String> packagesToScan)
packagesToScan
- the packages to scanpublic boolean isShowActuator()
public void setShowActuator(boolean showActuator)
showActuator
- the show actuatorpublic SpringDocConfigProperties.Webjars getWebjars()
public void setWebjars(SpringDocConfigProperties.Webjars webjars)
webjars
- the webjarspublic SpringDocConfigProperties.ApiDocs getApiDocs()
public void setApiDocs(SpringDocConfigProperties.ApiDocs apiDocs)
apiDocs
- the api docspublic List<String> getPathsToMatch()
public void setPathsToMatch(List<String> pathsToMatch)
pathsToMatch
- the paths to matchpublic SpringDocConfigProperties.Cache getCache()
public void setCache(SpringDocConfigProperties.Cache cache)
cache
- the cachepublic boolean isCacheDisabled()
public Set<SpringDocConfigProperties.GroupConfig> getGroupConfigs()
public void setGroupConfigs(Set<SpringDocConfigProperties.GroupConfig> groupConfigs)
groupConfigs
- the group configspublic void addGroupConfig(SpringDocConfigProperties.GroupConfig groupConfigs)
groupConfigs
- the group configspublic String getDefaultConsumesMediaType()
public void setDefaultConsumesMediaType(String defaultConsumesMediaType)
defaultConsumesMediaType
- the default consumes media typepublic String getDefaultProducesMediaType()
public void setDefaultProducesMediaType(String defaultProducesMediaType)
defaultProducesMediaType
- the default produces media typepublic boolean isOverrideWithGenericResponse()
public void setOverrideWithGenericResponse(boolean overrideWithGenericResponse)
overrideWithGenericResponse
- the override with generic responsepublic boolean isDefaultOverrideWithGenericResponse()
public boolean isRemoveBrokenReferenceDefinitions()
public void setRemoveBrokenReferenceDefinitions(boolean removeBrokenReferenceDefinitions)
removeBrokenReferenceDefinitions
- the remove broken reference definitionspublic boolean isWriterWithOrderByKeys()
public void setWriterWithOrderByKeys(boolean writerWithOrderByKeys)
writerWithOrderByKeys
- the writer wither order by keyspublic boolean isWriterWithDefaultPrettyPrinter()
public void setWriterWithDefaultPrettyPrinter(boolean writerWithDefaultPrettyPrinter)
writerWithDefaultPrettyPrinter
- the writer with default pretty printerpublic boolean isDisableI18n()
public void setDisableI18n(boolean disableI18n)
disableI18n
- the disable i 18 npublic boolean isPreLoadingEnabled()
public List<String> getPreLoadingLocales()
public void setPreLoadingEnabled(boolean preLoadingEnabled)
preLoadingEnabled
- the Localespublic void setPreLoadingLocales(List<String> preLoadingLocales)
preLoadingLocales
- the pre loading localespublic boolean isShowOauth2Endpoints()
public void setShowOauth2Endpoints(boolean showOauth2Endpoints)
showOauth2Endpoints
- the show oauth 2 endpointspublic io.swagger.v3.oas.models.SpecVersion getSpecVersion()
public boolean isOpenapi31()
Copyright © 2024. All rights reserved.