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
oauthPrefix, webJarsPrefixUrlFields inherited from class org.springdoc.ui.AbstractSwaggerWelcome
apiDocsUrl, contextPath, springDocConfigProperties, swaggerConfigUrl, swaggerUiConfig, swaggerUiConfigParameters -
Constructor Summary
ConstructorsConstructorDescriptionSwaggerWelcomeWebFlux(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, org.springdoc.core.providers.SpringWebProvider springWebProvider) Instantiates a new Swagger welcome web flux. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringBuild api doc url string.protected StringBuild swagger config url string.protected StringbuildUrlWithContextPath(String swaggerUiUrl) protected voidcalculateOauth2RedirectUrl(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder) Calculate oauth 2 redirect url.protected voidcalculateUiRootPath(StringBuilder... sbUrls) Calculate ui root path.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
getSwaggerUiConfigMethods 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.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, org.springdoc.core.providers.SpringWebProvider springWebProvider) Instantiates a new Swagger welcome web flux.- Parameters:
swaggerUiConfig- the swagger ui configspringDocConfigProperties- the spring doc config propertiesswaggerUiConfigParameters- the swagger ui config parametersspringWebProvider- 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:
redirectToUiin classSwaggerWelcomeCommon- Parameters:
request- the requestresponse- the response- Returns:
- the mono
-
calculateUiRootPath
Calculate ui root path.- Specified by:
calculateUiRootPathin classorg.springdoc.ui.AbstractSwaggerWelcome- Parameters:
sbUrls- the sb urls
-
calculateOauth2RedirectUrl
protected void calculateOauth2RedirectUrl(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder) Calculate oauth 2 redirect url.- Specified by:
calculateOauth2RedirectUrlin classorg.springdoc.ui.AbstractSwaggerWelcome- Parameters:
uriComponentsBuilder- the uri components builder
-
buildApiDocUrl
Build api doc url string.- Specified by:
buildApiDocUrlin classorg.springdoc.ui.AbstractSwaggerWelcome- Returns:
- the string
-
buildUrlWithContextPath
- Specified by:
buildUrlWithContextPathin classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildSwaggerConfigUrl
Build swagger config url string.- Specified by:
buildSwaggerConfigUrlin classorg.springdoc.ui.AbstractSwaggerWelcome- Returns:
- the string
-