public abstract class AbstractSwaggerWelcome extends Object implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected String |
apiDocsUrl
The Api docs url.
|
protected String |
contextPath
The Context path.
|
protected SpringDocConfigProperties |
springDocConfigProperties
The Spring doc config properties.
|
protected String |
swaggerConfigUrl
The Swagger config url.
|
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 abstract String |
buildApiDocUrl()
Build api doc url string.
|
protected void |
buildConfigUrl(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
Build config url.
|
protected abstract String |
buildSwaggerConfigUrl()
Build swagger config url string.
|
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 String |
getOauth2RedirectUrl()
Gets oauth2 redirect url.
|
protected String |
getSwaggerUiUrl()
Gets swagger ui url.
|
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
protected String swaggerConfigUrl
protected String apiDocsUrl
protected String contextPath
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(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
uriComponentsBuilder
- 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 urlsprotected abstract String buildApiDocUrl()
protected abstract String buildSwaggerConfigUrl()
protected String getOauth2RedirectUrl()
protected String getSwaggerUiUrl()
Copyright © 2021. All rights reserved.