public abstract class AbstractSwaggerWelcome extends Object implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected SpringDocConfigProperties |
springDocConfigProperties
The Spring doc config properties.
|
protected SwaggerUiConfigProperties |
swaggerUiConfig
The Swagger ui configuration.
|
protected SwaggerUiConfigParameters |
swaggerUiConfigParameters
The Swagger ui calculated config.
|
Constructor and Description |
---|
AbstractSwaggerWelcome(SwaggerUiConfigProperties swaggerUiConfig,
SpringDocConfigProperties springDocConfigProperties,
SwaggerUiConfigParameters swaggerUiConfigParameters)
Instantiates a new Abstract swagger welcome.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
buildConfigUrl(String contextPath,
org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
Build config url.
|
protected String |
buildUrl(String contextPath,
String docsUrl)
Build url string.
|
protected abstract void |
calculateOauth2RedirectUrl(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
Calculate oauth 2 redirect url.
|
protected void |
calculateUiRootCommon(StringBuilder sbUrl,
StringBuilder[] sbUrls)
Calculate ui root common.
|
protected abstract void |
calculateUiRootPath(StringBuilder... sbUrls)
Calculate ui root path.
|
protected org.springframework.web.util.UriComponentsBuilder |
getUriComponentsBuilder(String sbUrl)
Gets uri components builder.
|
protected final SwaggerUiConfigProperties swaggerUiConfig
protected final SpringDocConfigProperties springDocConfigProperties
protected final SwaggerUiConfigParameters swaggerUiConfigParameters
public AbstractSwaggerWelcome(SwaggerUiConfigProperties swaggerUiConfig, SpringDocConfigProperties springDocConfigProperties, SwaggerUiConfigParameters swaggerUiConfigParameters)
swaggerUiConfig
- the swagger ui configspringDocConfigProperties
- the spring doc config propertiesswaggerUiConfigParameters
- the swagger ui config parameterspublic void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
protected String buildUrl(String contextPath, String docsUrl)
contextPath
- the context pathdocsUrl
- the docs urlprotected void buildConfigUrl(String contextPath, org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
contextPath
- the context pathuriComponentsBuilder
- the uri components builderprotected org.springframework.web.util.UriComponentsBuilder getUriComponentsBuilder(String sbUrl)
sbUrl
- the sb urlprotected abstract void calculateOauth2RedirectUrl(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
uriComponentsBuilder
- the uri components builderprotected abstract void calculateUiRootPath(StringBuilder... sbUrls)
sbUrls
- the sb urlsprotected void calculateUiRootCommon(StringBuilder sbUrl, StringBuilder[] sbUrls)
sbUrl
- the sb urlsbUrls
- the sb urlsCopyright © 2021. All rights reserved.