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 Object
The type Spring doc config properties.
- Author:
- bnasslahsen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The type Api docs.static class
The type Cache.static class
The type Group config.static class
The type Groups.static class
The type Model converters.static class
The type Webjars. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGroupConfig
(SpringDocConfigProperties.GroupConfig groupConfigs) Add group config.Gets api docs.getCache()
Gets cache.Gets consumes to match.Gets default consumes media type.Gets default produces media type.Gets group configs.Gets headers to match.Gets model converters.Gets override with generic response.Gets packages to exclude.Gets packages to scan.Gets paths to exclude.Gets paths to match.Gets produces to match.Gets sort converter.Gets webjars.boolean
Is auto tag classes boolean.boolean
Is cache disabled boolean.boolean
Is default flat param objectboolean
Gets default override with generic response.boolean
Is default support form data boolean.boolean
Is disable i 18 n boolean.boolean
Is model and view allowed boolean.boolean
Is nullable request parameter enabled boolean.boolean
Is override with generic response boolean.boolean
Is pre loading enabled boolean.boolean
Is remove broken reference definitions boolean.boolean
Is show actuator boolean.boolean
Is show login endpoint boolean.boolean
boolean
Is show spring cloud functions boolean.boolean
isUseFqn()
Is use fqn boolean.boolean
Is use management port boolean.boolean
Is writer with default pretty printer boolean.boolean
Is writer wither order by keys boolean.void
Sets api docs.void
setAutoTagClasses
(boolean autoTagClasses) Sets auto tag classes.void
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
setGroupConfigs
(List<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
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 pre loading enabled.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 showOauth2Endpoint) void
setShowSpringCloudFunctions
(boolean showSpringCloudFunctions) Sets show spring cloud functions.void
Sets sort converter.void
setUseFqn
(boolean useFqn) Sets use fqn.void
setUseManagementPort
(boolean useManagementPort) Sets use management port.void
Sets webjars.void
setWriterWithDefaultPrettyPrinter
(boolean writerWithDefaultPrettyPrinter) Sets writer with default pretty printer.void
setWriterWithOrderByKeys
(boolean writerWithOrderByKeys) Sets writer wither order by keys.
-
Constructor Details
-
SpringDocConfigProperties
public SpringDocConfigProperties()
-
-
Method Details
-
getOverrideWithGenericResponse
Gets override with generic response.- Returns:
- the override with generic response
-
isNullableRequestParameterEnabled
public boolean isNullableRequestParameterEnabled()Is nullable request parameter enabled boolean.- Returns:
- the boolean
-
setNullableRequestParameterEnabled
public void setNullableRequestParameterEnabled(boolean nullableRequestParameterEnabled) Sets nullable request parameter enabled.- Parameters:
nullableRequestParameterEnabled
- the nullable request parameter enabled
-
isDefaultSupportFormData
public boolean isDefaultSupportFormData()Is default support form data boolean.- Returns:
- the boolean
-
setDefaultSupportFormData
public void setDefaultSupportFormData(boolean defaultSupportFormData) Sets default support form data.- Parameters:
defaultSupportFormData
- the default support form data
-
getSortConverter
Gets sort converter.- Returns:
- the sort converter
-
setSortConverter
Sets sort converter.- Parameters:
sortConverter
- the sort converter
-
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
-
isDefaultFlatParamObject
public boolean isDefaultFlatParamObject()Is default flat param object- Returns:
- the boolean
-
setDefaultFlatParamObject
public void setDefaultFlatParamObject(boolean defaultFlatParamObject) Sets default flat param object.- Parameters:
defaultFlatParamObject
- the default flat param object
-
getModelConverters
Gets model converters.- Returns:
- the model converters
-
setModelConverters
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
Gets produces to match.- Returns:
- the produces to match
-
setProducesToMatch
Sets produces to match.- Parameters:
producesToMatch
- the produces to match
-
getHeadersToMatch
Gets headers to match.- Returns:
- the headers to match
-
setHeadersToMatch
Sets headers to match.- Parameters:
headersToMatch
- the headers to match
-
getConsumesToMatch
Gets consumes to match.- Returns:
- the consumes to match
-
setConsumesToMatch
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
Gets packages to exclude.- Returns:
- the packages to exclude
-
setPackagesToExclude
Sets packages to exclude.- Parameters:
packagesToExclude
- the packages to exclude
-
getPathsToExclude
Gets paths to exclude.- Returns:
- the paths to exclude
-
setPathsToExclude
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
Gets packages to scan.- Returns:
- the packages to scan
-
setPackagesToScan
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
Gets webjars.- Returns:
- the webjars
-
setWebjars
Sets webjars.- Parameters:
webjars
- the webjars
-
getApiDocs
Gets api docs.- Returns:
- the api docs
-
setApiDocs
Sets api docs.- Parameters:
apiDocs
- the api docs
-
getPathsToMatch
Gets paths to match.- Returns:
- the paths to match
-
setPathsToMatch
Sets paths to match.- Parameters:
pathsToMatch
- the paths to match
-
getCache
Gets cache.- Returns:
- the cache
-
setCache
Sets cache.- Parameters:
cache
- the cache
-
isCacheDisabled
public boolean isCacheDisabled()Is cache disabled boolean.- Returns:
- the boolean
-
getGroupConfigs
Gets group configs.- Returns:
- the group configs
-
setGroupConfigs
Sets group configs.- Parameters:
groupConfigs
- the group configs
-
addGroupConfig
Add group config.- Parameters:
groupConfigs
- the group configs
-
getDefaultConsumesMediaType
Gets default consumes media type.- Returns:
- the default consumes media type
-
setDefaultConsumesMediaType
Sets default consumes media type.- Parameters:
defaultConsumesMediaType
- the default consumes media type
-
getDefaultProducesMediaType
Gets default produces media type.- Returns:
- the default produces media type
-
setDefaultProducesMediaType
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
-
setOverrideWithGenericResponse
Sets override with generic response.- Parameters:
overrideWithGenericResponse
- the override with generic response
-
isDefaultOverrideWithGenericResponse
public boolean isDefaultOverrideWithGenericResponse()Gets default override with generic response.- Returns:
- the default 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
-
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
-
setPreLoadingEnabled
public void setPreLoadingEnabled(boolean preLoadingEnabled) Sets pre loading enabled.- Parameters:
preLoadingEnabled
- the pre loading enabled
-
isShowOauth2Endpoints
public boolean isShowOauth2Endpoints() -
setShowOauth2Endpoints
public void setShowOauth2Endpoints(boolean showOauth2Endpoint)
-