@Lazy(value=false)
@Configuration(proxyBeanMethods=false)
@ConfigurationProperties(prefix="springdoc.swagger-ui")
@ConditionalOnProperty(name="springdoc.swagger-ui.enabled",
matchIfMissing=true)
@ConditionalOnBean(value=SpringDocConfiguration.class)
public class SwaggerUiConfigProperties
extends AbstractSwaggerUiConfigProperties
| Modifier and Type | Class and Description |
|---|---|
static class |
SwaggerUiConfigProperties.Csrf
The type Csrf.
|
static class |
SwaggerUiConfigProperties.SyntaxHighlight
The type Syntax highlight.
|
AbstractSwaggerUiConfigProperties.SwaggerUrlconfigUrl, 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 and Description |
|---|
SwaggerUiConfigProperties() |
| Modifier and Type | Method and Description |
|---|---|
Set<AbstractSwaggerUiConfigProperties.SwaggerUrl> |
cloneUrls()
Clone urls set.
|
SwaggerUiConfigProperties.Csrf |
getCsrf()
Gets csrf.
|
SwaggerUiConfigProperties.SyntaxHighlight |
getSyntaxHighlight()
Gets syntaxHighlight.
|
String |
getVersion()
Gets swagger ui version.
|
boolean |
isCsrfEnabled()
Is csrf enabled boolean.
|
boolean |
isDisableSwaggerDefaultUrl()
Is disable swagger default url boolean.
|
boolean |
isEnabled()
Is enabled boolean.
|
boolean |
isUseRootPath()
Is use root path boolean.
|
void |
setCsrf(SwaggerUiConfigProperties.Csrf csrf)
Sets csrf.
|
void |
setDisableSwaggerDefaultUrl(boolean disableSwaggerDefaultUrl)
Sets disable swagger default url.
|
void |
setEnabled(boolean enabled)
Sets enabled.
|
void |
setSyntaxHighlight(SwaggerUiConfigProperties.SyntaxHighlight syntaxHighlight)
Sets syntaxHighlight.
|
void |
setUseRootPath(boolean useRootPath)
Sets use root path.
|
void |
setVersion(String version)
Sets swagger ui version.
|
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, setWithCredentialspublic String getVersion()
public void setVersion(String version)
version - the swagger ui versionpublic boolean isUseRootPath()
public void setUseRootPath(boolean useRootPath)
useRootPath - the use root pathpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - the enabledpublic boolean isDisableSwaggerDefaultUrl()
public void setDisableSwaggerDefaultUrl(boolean disableSwaggerDefaultUrl)
disableSwaggerDefaultUrl - the disable swagger default urlpublic SwaggerUiConfigProperties.Csrf getCsrf()
public void setCsrf(SwaggerUiConfigProperties.Csrf csrf)
csrf - the csrfpublic boolean isCsrfEnabled()
public SwaggerUiConfigProperties.SyntaxHighlight getSyntaxHighlight()
public void setSyntaxHighlight(SwaggerUiConfigProperties.SyntaxHighlight syntaxHighlight)
syntaxHighlight - the syntaxHighlightpublic Set<AbstractSwaggerUiConfigProperties.SwaggerUrl> cloneUrls()
Copyright © 2024. All rights reserved.