@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.SwaggerUrl
configUrl, deepLinking, defaultModelExpandDepth, defaultModelRendering, defaultModelsExpandDepth, displayOperationId, displayRequestDuration, docExpansion, filter, groupsOrder, layout, maxDisplayedTags, oauth2RedirectUrl, operationsSorter, path, persistAuthorization, showCommonExtensions, showExtensions, supportedSubmitMethods, syntaxHighlight, tagsSorter, url, urls, urlsPrimaryName, validatorUrl
Constructor and Description |
---|
SwaggerUiConfigProperties() |
Modifier and Type | Method and Description |
---|---|
SwaggerUiConfigProperties.Csrf |
getCsrf()
Gets csrf.
|
boolean |
isCsrfEnabled()
Is csrf enabled boolean.
|
boolean |
isDisableSwaggerDefaultUrl()
Is disable swagger default url boolean.
|
boolean |
isDisplayQueryParams()
Is display query params boolean.
|
boolean |
isDisplayQueryParamsWithoutOauth2()
Is display query params without oauth 2 boolean.
|
boolean |
isEnabled()
Is enabled boolean.
|
void |
setCsrf(SwaggerUiConfigProperties.Csrf csrf)
Sets csrf.
|
void |
setDisableSwaggerDefaultUrl(boolean disableSwaggerDefaultUrl)
Sets disable swagger default url.
|
void |
setDisplayQueryParams(boolean displayQueryParams)
Sets display query params.
|
void |
setDisplayQueryParamsWithoutOauth2(boolean displayQueryParamsWithoutOauth2)
Sets display query params without oauth 2.
|
void |
setEnabled(boolean enabled)
Sets enabled.
|
getConfigUrl, getDeepLinking, getDefaultModelExpandDepth, getDefaultModelRendering, getDefaultModelsExpandDepth, getDisplayOperationId, getDisplayRequestDuration, getDocExpansion, getFilter, getGroupsOrder, getLayout, getMaxDisplayedTags, getOauth2RedirectUrl, getOperationsSorter, getPath, getPersistAuthorization, getShowCommonExtensions, getShowExtensions, getSupportedSubmitMethods, getSyntaxHighlight, getTagsSorter, getUrl, getUrls, getUrlsPrimaryName, getValidatorUrl, setConfigUrl, setDeepLinking, setDefaultModelExpandDepth, setDefaultModelRendering, setDefaultModelsExpandDepth, setDisplayOperationId, setDisplayRequestDuration, setDocExpansion, setFilter, setGroupsOrder, setLayout, setMaxDisplayedTags, setOauth2RedirectUrl, setOperationsSorter, setPath, setPersistAuthorization, setShowCommonExtensions, setShowExtensions, setSupportedSubmitMethods, setSyntaxHighlight, setTagsSorter, setUrl, setUrls, setUrlsPrimaryName, setValidatorUrl
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- the enabledpublic boolean isDisableSwaggerDefaultUrl()
public void setDisableSwaggerDefaultUrl(boolean disableSwaggerDefaultUrl)
disableSwaggerDefaultUrl
- the disable swagger default urlpublic boolean isDisplayQueryParams()
public void setDisplayQueryParams(boolean displayQueryParams)
displayQueryParams
- the display query paramspublic boolean isDisplayQueryParamsWithoutOauth2()
public void setDisplayQueryParamsWithoutOauth2(boolean displayQueryParamsWithoutOauth2)
displayQueryParamsWithoutOauth2
- the display query params without oauth 2public SwaggerUiConfigProperties.Csrf getCsrf()
public void setCsrf(SwaggerUiConfigProperties.Csrf csrf)
csrf
- the csrfpublic boolean isCsrfEnabled()
Copyright © 2021. All rights reserved.