Package org.springdoc.core.properties
Class SwaggerUiConfigProperties
java.lang.Object
org.springdoc.core.properties.AbstractSwaggerUiConfigProperties
org.springdoc.core.properties.SwaggerUiConfigProperties
@Lazy(false)
@Configuration(proxyBeanMethods=false)
@ConfigurationProperties(prefix="springdoc.swagger-ui")
@ConditionalOnProperty(name="springdoc.swagger-ui.enabled",
matchIfMissing=true)
@ConditionalOnBean(SpringDocConfiguration.class)
public class SwaggerUiConfigProperties
extends AbstractSwaggerUiConfigProperties
The type Swagger ui config properties.
- Author:
- bnasslahsen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe type Csrf.static classThe type Syntax highlight.Nested classes/interfaces inherited from class org.springdoc.core.properties.AbstractSwaggerUiConfigProperties
AbstractSwaggerUiConfigProperties.SwaggerUrl -
Field Summary
Fields inherited from class org.springdoc.core.properties.AbstractSwaggerUiConfigProperties
configUrl, deepLinking, defaultModelExpandDepth, defaultModelRendering, defaultModelsExpandDepth, displayOperationId, displayRequestDuration, docExpansion, filter, groupsOrder, layout, maxDisplayedTags, oauth2RedirectUrl, operationsSorter, path, persistAuthorization, queryConfigEnabled, showCommonExtensions, showExtensions, supportedSubmitMethods, tagsSorter, tryItOutEnabled, url, urls, urlsPrimaryName, validatorUrl, withCredentials -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClone urls set.getCsrf()Gets csrf.Gets syntaxHighlight.Gets swagger ui version.booleanIs csrf enabled boolean.booleanIs disable swagger default url boolean.booleanIs enabled boolean.booleanIs use root path boolean.voidSets csrf.voidsetDisableSwaggerDefaultUrl(boolean disableSwaggerDefaultUrl) Sets disable swagger default url.voidsetEnabled(boolean enabled) Sets enabled.voidsetSyntaxHighlight(SwaggerUiConfigProperties.SyntaxHighlight syntaxHighlight) Sets syntaxHighlight.voidsetUseRootPath(boolean useRootPath) Sets use root path.voidsetVersion(String version) Sets swagger ui version.Methods inherited from class org.springdoc.core.properties.AbstractSwaggerUiConfigProperties
getConfigUrl, getDeepLinking, getDefaultModelExpandDepth, getDefaultModelRendering, getDefaultModelsExpandDepth, getDisplayOperationId, getDisplayRequestDuration, getDocExpansion, getFilter, getGroupsOrder, getLayout, getMaxDisplayedTags, getOauth2RedirectUrl, getOperationsSorter, getPath, getPersistAuthorization, getQueryConfigEnabled, getShowCommonExtensions, getShowExtensions, getSupportedSubmitMethods, getTagsSorter, getTryItOutEnabled, getUrl, getUrls, getUrlsPrimaryName, getValidatorUrl, getWithCredentials, setConfigUrl, setDeepLinking, setDefaultModelExpandDepth, setDefaultModelRendering, setDefaultModelsExpandDepth, setDisplayOperationId, setDisplayRequestDuration, setDocExpansion, setFilter, setGroupsOrder, setLayout, setMaxDisplayedTags, setOauth2RedirectUrl, setOperationsSorter, setPath, setPersistAuthorization, setQueryConfigEnabled, setShowCommonExtensions, setShowExtensions, setSupportedSubmitMethods, setTagsSorter, setTryItOutEnabled, setUrl, setUrls, setUrlsPrimaryName, setValidatorUrl, setWithCredentials
-
Constructor Details
-
SwaggerUiConfigProperties
public SwaggerUiConfigProperties()
-
-
Method Details
-
getVersion
Gets swagger ui version.- Returns:
- the swagger ui version
-
setVersion
Sets swagger ui version.- Parameters:
version- the swagger ui version
-
isUseRootPath
public boolean isUseRootPath()Is use root path boolean.- Returns:
- the boolean
-
setUseRootPath
public void setUseRootPath(boolean useRootPath) Sets use root path.- Parameters:
useRootPath- the use root path
-
isEnabled
public boolean isEnabled()Is enabled boolean.- Returns:
- the boolean
-
setEnabled
public void setEnabled(boolean enabled) Sets enabled.- Parameters:
enabled- the enabled
-
isDisableSwaggerDefaultUrl
public boolean isDisableSwaggerDefaultUrl()Is disable swagger default url boolean.- Returns:
- the boolean
-
setDisableSwaggerDefaultUrl
public void setDisableSwaggerDefaultUrl(boolean disableSwaggerDefaultUrl) Sets disable swagger default url.- Parameters:
disableSwaggerDefaultUrl- the disable swagger default url
-
getCsrf
Gets csrf.- Returns:
- the csrf
-
setCsrf
Sets csrf.- Parameters:
csrf- the csrf
-
isCsrfEnabled
public boolean isCsrfEnabled()Is csrf enabled boolean.- Returns:
- the boolean
-
getSyntaxHighlight
Gets syntaxHighlight.- Returns:
- the syntaxHighlight
-
setSyntaxHighlight
Sets syntaxHighlight.- Parameters:
syntaxHighlight- the syntaxHighlight
-
cloneUrls
Clone urls set.- Returns:
- the set
-