Package org.springdoc.core
Class SpringDocConfigProperties
- java.lang.Object
-
- org.springdoc.core.SpringDocConfigProperties
-
@Lazy(false) @Configuration(proxyBeanMethods=false) @ConfigurationProperties(prefix="springdoc") @ConditionalOnProperty(name="springdoc.api-docs.enabled", matchIfMissing=true) public class SpringDocConfigProperties extends ObjectThe type Spring doc config properties.- Author:
- bnasslahsen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpringDocConfigProperties.ApiDocsThe type Api docs.static classSpringDocConfigProperties.CacheThe type Cache.static classSpringDocConfigProperties.GroupConfigThe type Group config.static classSpringDocConfigProperties.GroupsThe type Groups.static classSpringDocConfigProperties.ModelConvertersThe type Model converters.static classSpringDocConfigProperties.WebjarsThe type Webjars.
-
Constructor Summary
Constructors Constructor Description SpringDocConfigProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroupConfig(SpringDocConfigProperties.GroupConfig groupConfigs)Add group config.SpringDocConfigProperties.ApiDocsgetApiDocs()Gets api docs.SpringDocConfigProperties.CachegetCache()Gets cache.List<String>getConsumesToMatch()Gets consumes to match.StringgetDefaultConsumesMediaType()Gets default consumes media type.StringgetDefaultProducesMediaType()Gets default produces media type.List<SpringDocConfigProperties.GroupConfig>getGroupConfigs()Gets group configs.List<String>getHeadersToMatch()Gets headers to match.SpringDocConfigProperties.ModelConvertersgetModelConverters()Gets model converters.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>getProducesToMatch()Gets produces to match.SpringDocConfigProperties.WebjarsgetWebjars()Gets webjars.booleanisAutoTagClasses()Is auto tag classes boolean.booleanisCacheDisabled()Is cache disabled boolean.booleanisDefaultOverrideWithGenericResponse()Gets default override with generic response.booleanisDisableI18n()Is disable i 18 n boolean.booleanisModelAndViewAllowed()Is model and view allowed boolean.BooleanisOverrideWithGenericResponse()Is override with generic response boolean.booleanisPreLoadingEnabled()Is pre loading enabled boolean.booleanisRemoveBrokenReferenceDefinitions()Is remove broken reference definitions boolean.booleanisShowActuator()Is show actuator boolean.booleanisShowLoginEndpoint()Is show login endpoint boolean.booleanisShowSpringCloudFunctions()Is show spring cloud functions boolean.booleanisUseFqn()Is use fqn boolean.booleanisUseManagementPort()Is use management port boolean.booleanisWriterWithDefaultPrettyPrinter()Is writer with default pretty printer boolean.booleanisWriterWithOrderByKeys()Is writer wither order by keys boolean.voidsetApiDocs(SpringDocConfigProperties.ApiDocs apiDocs)Sets api docs.voidsetAutoTagClasses(boolean autoTagClasses)Sets auto tag classes.voidsetCache(SpringDocConfigProperties.Cache cache)Sets cache.voidsetConsumesToMatch(List<String> consumesToMatch)Sets consumes to match.voidsetDefaultConsumesMediaType(String defaultConsumesMediaType)Sets default consumes media type.voidsetDefaultProducesMediaType(String defaultProducesMediaType)Sets default produces media type.voidsetDisableI18n(boolean disableI18n)Sets disable i 18 n.voidsetGroupConfigs(List<SpringDocConfigProperties.GroupConfig> groupConfigs)Sets group configs.voidsetHeadersToMatch(List<String> headersToMatch)Sets headers to match.voidsetModelAndViewAllowed(boolean modelAndViewAllowed)Sets model and view allowed.voidsetModelConverters(SpringDocConfigProperties.ModelConverters modelConverters)Sets model converters.voidsetOverrideWithGenericResponse(Boolean overrideWithGenericResponse)Sets override with generic response.voidsetPackagesToExclude(List<String> packagesToExclude)Sets packages to exclude.voidsetPackagesToScan(List<String> packagesToScan)Sets packages to scan.voidsetPathsToExclude(List<String> pathsToExclude)Sets paths to exclude.voidsetPathsToMatch(List<String> pathsToMatch)Sets paths to match.voidsetPreLoadingEnabled(boolean preLoadingEnabled)Sets pre loading enabled.voidsetProducesToMatch(List<String> producesToMatch)Sets produces to match.voidsetRemoveBrokenReferenceDefinitions(boolean removeBrokenReferenceDefinitions)Sets remove broken reference definitions.voidsetShowActuator(boolean showActuator)Sets show actuator.voidsetShowLoginEndpoint(boolean showLoginEndpoint)Sets show login endpoint.voidsetShowSpringCloudFunctions(boolean showSpringCloudFunctions)Sets show spring cloud functions.voidsetUseFqn(boolean useFqn)Sets use fqn.voidsetUseManagementPort(boolean useManagementPort)Sets use management port.voidsetWebjars(SpringDocConfigProperties.Webjars webjars)Sets webjars.voidsetWriterWithDefaultPrettyPrinter(boolean writerWithDefaultPrettyPrinter)Sets writer with default pretty printer.voidsetWriterWithOrderByKeys(boolean writerWithOrderByKeys)Sets writer wither order by keys.
-
-
-
Method Detail
-
isShowSpringCloudFunctions
public boolean isShowSpringCloudFunctions()
Is show spring cloud functions boolean.- Returns:
- the boolean
-
setShowSpringCloudFunctions
public void setShowSpringCloudFunctions(boolean showSpringCloudFunctions)
Sets show spring cloud functions.- Parameters:
showSpringCloudFunctions- the show spring cloud functions
-
getModelConverters
public SpringDocConfigProperties.ModelConverters getModelConverters()
Gets model converters.- Returns:
- the model converters
-
setModelConverters
public void setModelConverters(SpringDocConfigProperties.ModelConverters modelConverters)
Sets model converters.- Parameters:
modelConverters- the model converters
-
isUseManagementPort
public boolean isUseManagementPort()
Is use management port boolean.- Returns:
- the boolean
-
setUseManagementPort
public void setUseManagementPort(boolean useManagementPort)
Sets use management port.- Parameters:
useManagementPort- the use management port
-
getProducesToMatch
public List<String> getProducesToMatch()
Gets produces to match.- Returns:
- the produces to match
-
setProducesToMatch
public void setProducesToMatch(List<String> producesToMatch)
Sets produces to match.- Parameters:
producesToMatch- the produces to match
-
getHeadersToMatch
public List<String> getHeadersToMatch()
Gets headers to match.- Returns:
- the headers to match
-
setHeadersToMatch
public void setHeadersToMatch(List<String> headersToMatch)
Sets headers to match.- Parameters:
headersToMatch- the headers to match
-
getConsumesToMatch
public List<String> getConsumesToMatch()
Gets consumes to match.- Returns:
- the consumes to match
-
setConsumesToMatch
public void setConsumesToMatch(List<String> consumesToMatch)
Sets consumes to match.- Parameters:
consumesToMatch- the consumes to match
-
isUseFqn
public boolean isUseFqn()
Is use fqn boolean.- Returns:
- the boolean
-
setUseFqn
public void setUseFqn(boolean useFqn)
Sets use fqn.- Parameters:
useFqn- the use fqn
-
isAutoTagClasses
public boolean isAutoTagClasses()
Is auto tag classes boolean.- Returns:
- the boolean
-
setAutoTagClasses
public void setAutoTagClasses(boolean autoTagClasses)
Sets auto tag classes.- Parameters:
autoTagClasses- the auto tag classes
-
isModelAndViewAllowed
public boolean isModelAndViewAllowed()
Is model and view allowed boolean.- Returns:
- the boolean
-
setModelAndViewAllowed
public void setModelAndViewAllowed(boolean modelAndViewAllowed)
Sets model and view allowed.- Parameters:
modelAndViewAllowed- the model and view allowed
-
getPackagesToExclude
public List<String> getPackagesToExclude()
Gets packages to exclude.- Returns:
- the packages to exclude
-
setPackagesToExclude
public void setPackagesToExclude(List<String> packagesToExclude)
Sets packages to exclude.- Parameters:
packagesToExclude- the packages to exclude
-
getPathsToExclude
public List<String> getPathsToExclude()
Gets paths to exclude.- Returns:
- the paths to exclude
-
setPathsToExclude
public void setPathsToExclude(List<String> pathsToExclude)
Sets paths to exclude.- Parameters:
pathsToExclude- the paths to exclude
-
isShowLoginEndpoint
public boolean isShowLoginEndpoint()
Is show login endpoint boolean.- Returns:
- the boolean
-
setShowLoginEndpoint
public void setShowLoginEndpoint(boolean showLoginEndpoint)
Sets show login endpoint.- Parameters:
showLoginEndpoint- the show login endpoint
-
getPackagesToScan
public List<String> getPackagesToScan()
Gets packages to scan.- Returns:
- the packages to scan
-
setPackagesToScan
public void setPackagesToScan(List<String> packagesToScan)
Sets packages to scan.- Parameters:
packagesToScan- the packages to scan
-
isShowActuator
public boolean isShowActuator()
Is show actuator boolean.- Returns:
- the boolean
-
setShowActuator
public void setShowActuator(boolean showActuator)
Sets show actuator.- Parameters:
showActuator- the show actuator
-
getWebjars
public SpringDocConfigProperties.Webjars getWebjars()
Gets webjars.- Returns:
- the webjars
-
setWebjars
public void setWebjars(SpringDocConfigProperties.Webjars webjars)
Sets webjars.- Parameters:
webjars- the webjars
-
getApiDocs
public SpringDocConfigProperties.ApiDocs getApiDocs()
Gets api docs.- Returns:
- the api docs
-
setApiDocs
public void setApiDocs(SpringDocConfigProperties.ApiDocs apiDocs)
Sets api docs.- Parameters:
apiDocs- the api docs
-
getPathsToMatch
public List<String> getPathsToMatch()
Gets paths to match.- Returns:
- the paths to match
-
setPathsToMatch
public void setPathsToMatch(List<String> pathsToMatch)
Sets paths to match.- Parameters:
pathsToMatch- the paths to match
-
getCache
public SpringDocConfigProperties.Cache getCache()
Gets cache.- Returns:
- the cache
-
setCache
public void setCache(SpringDocConfigProperties.Cache cache)
Sets cache.- Parameters:
cache- the cache
-
isCacheDisabled
public boolean isCacheDisabled()
Is cache disabled boolean.- Returns:
- the boolean
-
getGroupConfigs
public List<SpringDocConfigProperties.GroupConfig> getGroupConfigs()
Gets group configs.- Returns:
- the group configs
-
setGroupConfigs
public void setGroupConfigs(List<SpringDocConfigProperties.GroupConfig> groupConfigs)
Sets group configs.- Parameters:
groupConfigs- the group configs
-
addGroupConfig
public void addGroupConfig(SpringDocConfigProperties.GroupConfig groupConfigs)
Add group config.- Parameters:
groupConfigs- the group configs
-
getDefaultConsumesMediaType
public String getDefaultConsumesMediaType()
Gets default consumes media type.- Returns:
- the default consumes media type
-
setDefaultConsumesMediaType
public void setDefaultConsumesMediaType(String defaultConsumesMediaType)
Sets default consumes media type.- Parameters:
defaultConsumesMediaType- the default consumes media type
-
getDefaultProducesMediaType
public String getDefaultProducesMediaType()
Gets default produces media type.- Returns:
- the default produces media type
-
setDefaultProducesMediaType
public void setDefaultProducesMediaType(String defaultProducesMediaType)
Sets default produces media type.- Parameters:
defaultProducesMediaType- the default produces media type
-
isOverrideWithGenericResponse
public Boolean isOverrideWithGenericResponse()
Is override with generic response boolean.- Returns:
- the boolean
-
isDefaultOverrideWithGenericResponse
public boolean isDefaultOverrideWithGenericResponse()
Gets default override with generic response.- Returns:
- the default override with generic response
-
setOverrideWithGenericResponse
public void setOverrideWithGenericResponse(Boolean overrideWithGenericResponse)
Sets override with generic response.- Parameters:
overrideWithGenericResponse- the override with generic response
-
isRemoveBrokenReferenceDefinitions
public boolean isRemoveBrokenReferenceDefinitions()
Is remove broken reference definitions boolean.- Returns:
- the boolean
-
setRemoveBrokenReferenceDefinitions
public void setRemoveBrokenReferenceDefinitions(boolean removeBrokenReferenceDefinitions)
Sets remove broken reference definitions.- Parameters:
removeBrokenReferenceDefinitions- the remove broken reference definitions
-
isWriterWithOrderByKeys
public boolean isWriterWithOrderByKeys()
Is writer wither order by keys boolean.- Returns:
- the boolean
-
setWriterWithOrderByKeys
public void setWriterWithOrderByKeys(boolean writerWithOrderByKeys)
Sets writer wither order by keys.- Parameters:
writerWithOrderByKeys- the writer wither order by keys
-
isWriterWithDefaultPrettyPrinter
public boolean isWriterWithDefaultPrettyPrinter()
Is writer with default pretty printer boolean.- Returns:
- the boolean
-
setWriterWithDefaultPrettyPrinter
public void setWriterWithDefaultPrettyPrinter(boolean writerWithDefaultPrettyPrinter)
Sets writer with default pretty printer.- Parameters:
writerWithDefaultPrettyPrinter- the writer with default pretty printer
-
setPreLoadingEnabled
public void setPreLoadingEnabled(boolean preLoadingEnabled)
Sets pre loading enabled.- Parameters:
preLoadingEnabled- the pre loading enabled
-
isDisableI18n
public boolean isDisableI18n()
Is disable i 18 n boolean.- Returns:
- the boolean
-
setDisableI18n
public void setDisableI18n(boolean disableI18n)
Sets disable i 18 n.- Parameters:
disableI18n- the disable i 18 n
-
isPreLoadingEnabled
public boolean isPreLoadingEnabled()
Is pre loading enabled boolean.- Returns:
- the boolean
-
-