Class SwaggerWelcomeActuator

java.lang.Object
org.springdoc.ui.AbstractSwaggerWelcome
org.springdoc.webmvc.ui.SwaggerWelcomeCommon
org.springdoc.webmvc.ui.SwaggerWelcomeActuator

@ControllerEndpoint(id="swagger-ui") public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon
The type Swagger actuator welcome.
  • Field Summary

    Fields inherited from class org.springdoc.ui.AbstractSwaggerWelcome

    springDocConfigProperties, swaggerUiConfig
  • Constructor Summary

    Constructors
    Constructor
    Description
    SwaggerWelcomeActuator(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties)
    Instantiates a new Swagger welcome.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
    calculateUiRootPath(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, StringBuilder... sbUrls)
     
    openapiJson(jakarta.servlet.http.HttpServletRequest request)
    Openapi yaml map.
    org.springframework.http.ResponseEntity<Void>
    redirectToUi(jakarta.servlet.http.HttpServletRequest request)
    Redirect to ui string.

    Methods inherited from class org.springdoc.webmvc.ui.SwaggerWelcomeCommon

    calculateOauth2RedirectUrl

    Methods inherited from class org.springdoc.ui.AbstractSwaggerWelcome

    buildConfigUrl, buildUrl, calculateUiRootCommon, getOauth2RedirectUrl, getSwaggerUiUrl, getUriComponentsBuilder, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SwaggerWelcomeActuator

      public SwaggerWelcomeActuator(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfig, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties)
      Instantiates a new Swagger welcome.
      Parameters:
      swaggerUiConfig - the swagger ui config
      springDocConfigProperties - the swagger ui config parameters
      webEndpointProperties - the web endpoint properties
  • Method Details

    • redirectToUi

      @GetMapping("/") public org.springframework.http.ResponseEntity<Void> redirectToUi(jakarta.servlet.http.HttpServletRequest request)
      Redirect to ui string.
      Overrides:
      redirectToUi in class SwaggerWelcomeCommon
      Parameters:
      request - the request
      Returns:
      the string
    • openapiJson

      @GetMapping(value="/swagger-config", produces="application/json") @ResponseBody public Map<String,Object> openapiJson(jakarta.servlet.http.HttpServletRequest request)
      Openapi yaml map.
      Overrides:
      openapiJson in class SwaggerWelcomeCommon
      Parameters:
      request - the request
      Returns:
      the map
    • calculateUiRootPath

      protected void calculateUiRootPath(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, StringBuilder... sbUrls)
      Specified by:
      calculateUiRootPath in class org.springdoc.ui.AbstractSwaggerWelcome
    • buildApiDocUrl

      protected void buildApiDocUrl(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters)
      Specified by:
      buildApiDocUrl in class org.springdoc.ui.AbstractSwaggerWelcome
    • buildUrlWithContextPath

      protected String buildUrlWithContextPath(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters, String swaggerUiUrl)
      Specified by:
      buildUrlWithContextPath in class org.springdoc.ui.AbstractSwaggerWelcome
    • buildSwaggerConfigUrl

      protected void buildSwaggerConfigUrl(org.springdoc.core.properties.SwaggerUiConfigParameters swaggerUiConfigParameters)
      Specified by:
      buildSwaggerConfigUrl in class org.springdoc.ui.AbstractSwaggerWelcome