Package org.springdoc.webflux.ui
Class SwaggerWelcomeActuator
java.lang.Object
org.springdoc.ui.AbstractSwaggerWelcome
org.springdoc.webflux.ui.SwaggerWelcomeCommon
org.springdoc.webflux.ui.SwaggerWelcomeActuator
@ControllerEndpoint(id="swagger-ui")
public class SwaggerWelcomeActuator
extends SwaggerWelcomeCommon
The type Swagger actuator welcome.
- Author:
- bnasslashen
-
Field Summary
Fields inherited from class org.springdoc.webflux.ui.SwaggerWelcomeCommon
oauthPrefix, webJarsPrefixUrl
Fields inherited from class org.springdoc.ui.AbstractSwaggerWelcome
apiDocsUrl, contextPath, springDocConfigProperties, swaggerConfigUrl, swaggerUiConfig, swaggerUiConfigParameters
-
Constructor Summary
ConstructorsConstructorDescriptionSwaggerWelcomeActuator
(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties, org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties managementServerProperties) Instantiates a new Swagger welcome. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
protected String
buildUrlWithContextPath
(String swaggerUiUrl) protected void
calculateOauth2RedirectUrl
(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder) protected void
calculateUiRootPath
(StringBuilder... sbUrls) getSwaggerUiConfig
(org.springframework.http.server.reactive.ServerHttpRequest request) Gets swagger ui config.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.ui.AbstractSwaggerWelcome
buildConfigUrl, buildUrl, calculateUiRootCommon, getOauth2RedirectUrl, getSwaggerUiUrl, getUriComponentsBuilder, init
-
Constructor Details
-
SwaggerWelcomeActuator
public SwaggerWelcomeActuator(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties, org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties managementServerProperties) Instantiates a new Swagger welcome.- Parameters:
swaggerUiConfig
- the swagger ui configspringDocConfigProperties
- the spring doc config propertiesswaggerUiConfigParameters
- the swagger ui config parameterswebEndpointProperties
- the web endpoint propertiesmanagementServerProperties
- the management server properties
-
-
Method Details
-
redirectToUi
@GetMapping("/") 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
-
getSwaggerUiConfig
@GetMapping(value="/swagger-config", produces="application/json") @ResponseBody public Map<String,Object> getSwaggerUiConfig(org.springframework.http.server.reactive.ServerHttpRequest request) Gets swagger ui config.- Overrides:
getSwaggerUiConfig
in classSwaggerWelcomeCommon
- Parameters:
request
- the request- Returns:
- the swagger ui config
-
calculateUiRootPath
- Specified by:
calculateUiRootPath
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
calculateOauth2RedirectUrl
protected void calculateOauth2RedirectUrl(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder) - Specified by:
calculateOauth2RedirectUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildApiDocUrl
- Specified by:
buildApiDocUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildUrlWithContextPath
- Specified by:
buildUrlWithContextPath
in classorg.springdoc.ui.AbstractSwaggerWelcome
-
buildSwaggerConfigUrl
- Specified by:
buildSwaggerConfigUrl
in classorg.springdoc.ui.AbstractSwaggerWelcome
-