Class SwaggerWelcomeActuator


  • @ControllerEndpoint(id="swaggerui")
    public class SwaggerWelcomeActuator
    extends SwaggerWelcomeCommon
    The type Swagger actuator welcome.
    Author:
    bnasslashen
    • Field Summary

      • Fields inherited from class org.springdoc.ui.AbstractSwaggerWelcome

        apiDocsUrl, contextPath, springDocConfigProperties, swaggerConfigUrl, swaggerUiConfig, swaggerUiConfigParameters
    • Constructor Summary

      Constructors 
      Constructor Description
      SwaggerWelcomeActuator​(org.springdoc.core.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.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.
    • Constructor Detail

      • SwaggerWelcomeActuator

        public SwaggerWelcomeActuator​(org.springdoc.core.SwaggerUiConfigProperties swaggerUiConfig,
                                      org.springdoc.core.SpringDocConfigProperties springDocConfigProperties,
                                      org.springdoc.core.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 config
        springDocConfigProperties - the spring doc config properties
        swaggerUiConfigParameters - the swagger ui config parameters
        webEndpointProperties - the web endpoint properties
        managementServerProperties - the management server properties
    • Method Detail

      • 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 class SwaggerWelcomeCommon
        Parameters:
        request - the request
        response - 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 class SwaggerWelcomeCommon
        Parameters:
        request - the request
        Returns:
        the swagger ui config
      • calculateUiRootPath

        protected void calculateUiRootPath​(StringBuilder... sbUrls)
        Specified by:
        calculateUiRootPath in class org.springdoc.ui.AbstractSwaggerWelcome
      • calculateOauth2RedirectUrl

        protected void calculateOauth2RedirectUrl​(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
        Specified by:
        calculateOauth2RedirectUrl in class org.springdoc.ui.AbstractSwaggerWelcome
      • buildApiDocUrl

        protected String buildApiDocUrl()
        Specified by:
        buildApiDocUrl in class org.springdoc.ui.AbstractSwaggerWelcome
      • buildSwaggerConfigUrl

        protected String buildSwaggerConfigUrl()
        Specified by:
        buildSwaggerConfigUrl in class org.springdoc.ui.AbstractSwaggerWelcome