Package org.springdoc.webflux.ui
Class SwaggerWelcomeWebFlux
java.lang.Object
org.springdoc.ui.AbstractSwaggerWelcome
org.springdoc.webflux.ui.SwaggerWelcomeCommon
org.springdoc.webflux.ui.SwaggerWelcomeWebFlux
The type Swagger welcome.
- Author:
- bnasslahsen
-
Field Summary
Fields inherited from class org.springdoc.webflux.ui.SwaggerWelcomeCommon
webJarsPrefixUrl
Fields inherited from class org.springdoc.ui.AbstractSwaggerWelcome
springDocConfigProperties, swaggerUiConfig
-
Constructor Summary
ConstructorsConstructorDescriptionSwaggerWelcomeWebFlux
(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.providers.SpringWebProvider springWebProvider) Instantiates a new Swagger welcome web flux. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildApiDocUrl
(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters) protected void
buildSwaggerConfigUrl
(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters) protected String
buildUrlWithContextPath
(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, String swaggerUiUrl) protected void
calculateOauth2RedirectUrl
(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder) protected void
calculateUiRootPath
(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, StringBuilder... sbUrls) reactor.core.publisher.Mono<Void>
redirectToUi
(org.springframework.http.server.reactive.ServerHttpRequest request, org.springframework.http.server.reactive.ServerHttpResponse response) Redirect to ui mono.Methods inherited from class org.springdoc.webflux.ui.SwaggerWelcomeCommon
getSwaggerUiConfig
Methods inherited from class org.springdoc.ui.AbstractSwaggerWelcome
buildConfigUrl, buildUrl, calculateUiRootCommon, getOauth2RedirectUrl, getSwaggerUiUrl, getUriComponentsBuilder, init
-
Constructor Details
-
SwaggerWelcomeWebFlux
public SwaggerWelcomeWebFlux(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.providers.SpringWebProvider springWebProvider) Instantiates a new Swagger welcome web flux.- Parameters:
swaggerUiConfig
- the swagger ui configspringDocConfigProperties
- the spring doc config propertiesspringWebProvider
- the spring web provider
-
-
Method Details
-
redirectToUi
@GetMapping("${springdoc.swagger-ui.path:#{T(org.springdoc.core.utils.Constants).DEFAULT_SWAGGER_UI_PATH}}") public reactor.core.publisher.Mono<Void> redirectToUi(org.springframework.http.server.reactive.ServerHttpRequest request, org.springframework.http.server.reactive.ServerHttpResponse response) Redirect to ui mono.- Overrides:
redirectToUi
in classSwaggerWelcomeCommon
- Parameters:
request
- the requestresponse
- the response- Returns:
- the mono
-
calculateUiRootPath
protected void calculateUiRootPath(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, StringBuilder... sbUrls) - Specified by:
calculateUiRootPath
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
calculateOauth2RedirectUrl
protected void calculateOauth2RedirectUrl(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder) - Specified by:
calculateOauth2RedirectUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildApiDocUrl
protected void buildApiDocUrl(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters) - Specified by:
buildApiDocUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildUrlWithContextPath
protected String buildUrlWithContextPath(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, String swaggerUiUrl) - Specified by:
buildUrlWithContextPath
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildSwaggerConfigUrl
protected void buildSwaggerConfigUrl(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters) - Specified by:
buildSwaggerConfigUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-