@Lazy(value=false) @Configuration(proxyBeanMethods=false) @ConditionalOnProperty(name="springdoc.swagger-ui.enabled", matchIfMissing=true) @ConditionalOnBean(value=SpringDocConfiguration.class) @PropertySource(value="classpath:springdoc.swagger-ui.config") public class SwaggerUiConfigParameters extends AbstractSwaggerUiConfigProperties
AbstractSwaggerUiConfigProperties.SwaggerUrl
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_URL_PROPERTY
The constant CONFIG_URL_PROPERTY.
|
static String |
FILTER_PROPERTY
The constant FILTER_PROPERTY.
|
static String |
LAYOUT_PROPERTY
The constant LAYOUT_PROPERTY.
|
static String |
OAUTH2_REDIRECT_URL_PROPERTY
The constant OAUTH2_REDIRECT_URL_PROPERTY.
|
static String |
URLS_PROPERTY
The constant URLS_PROPERTY.
|
configUrl, deepLinking, defaultModelExpandDepth, defaultModelRendering, defaultModelsExpandDepth, displayOperationId, displayRequestDuration, docExpansion, filter, groupsOrder, layout, maxDisplayedTags, oauth2RedirectUrl, operationsSorter, path, persistAuthorization, showCommonExtensions, showExtensions, supportedSubmitMethods, syntaxHighlight, tagsSorter, tryItOutEnabled, url, urls, urlsPrimaryName, validatorUrl
Constructor and Description |
---|
SwaggerUiConfigParameters(SwaggerUiConfigProperties swaggerUiConfig,
Optional<SpringDocHints> springDocHintsOptional)
Instantiates a new Swagger ui config parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addGroup(String group)
Add group.
|
void |
addUrl(String url)
Add url.
|
Map<String,Object> |
getConfigParameters()
Gets config parameters.
|
Optional<SpringDocHints> |
getSpringDocHintsOptional()
Gets spring doc hints optional.
|
String |
getSwaggerUiVersion()
Gets swagger ui version.
|
String |
getUiRootPath()
Gets ui root path.
|
boolean |
isValidUrl(String url)
Is valid url boolean.
|
void |
setSwaggerUiVersion(String swaggerUiVersion)
Sets swagger ui version.
|
void |
setUiRootPath(String uiRootPath)
Sets ui root path.
|
getConfigUrl, getDeepLinking, getDefaultModelExpandDepth, getDefaultModelRendering, getDefaultModelsExpandDepth, getDisplayOperationId, getDisplayRequestDuration, getDocExpansion, getFilter, getGroupsOrder, getLayout, getMaxDisplayedTags, getOauth2RedirectUrl, getOperationsSorter, getPath, getPersistAuthorization, getShowCommonExtensions, getShowExtensions, getSupportedSubmitMethods, getSyntaxHighlight, getTagsSorter, getTryItOutEnabled, 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, setTryItOutEnabled, setUrl, setUrls, setUrlsPrimaryName, setValidatorUrl
public static final String CONFIG_URL_PROPERTY
public static final String LAYOUT_PROPERTY
public static final String FILTER_PROPERTY
public static final String URLS_PROPERTY
public static final String OAUTH2_REDIRECT_URL_PROPERTY
public SwaggerUiConfigParameters(SwaggerUiConfigProperties swaggerUiConfig, Optional<SpringDocHints> springDocHintsOptional)
swaggerUiConfig
- the swagger ui configspringDocHintsOptional
- the spring doc hints optionalpublic Optional<SpringDocHints> getSpringDocHintsOptional()
public String getSwaggerUiVersion()
public void setSwaggerUiVersion(String swaggerUiVersion)
swaggerUiVersion
- the swagger ui versionpublic void addGroup(String group)
group
- the grouppublic void addUrl(String url)
url
- the urlpublic String getUiRootPath()
public void setUiRootPath(String uiRootPath)
uiRootPath
- the ui root pathpublic boolean isValidUrl(String url)
url
- the urlCopyright © 2021. All rights reserved.