Class AbstractSwaggerWelcome

java.lang.Object
org.springdoc.ui.AbstractSwaggerWelcome

public abstract class AbstractSwaggerWelcome extends Object
The type Abstract swagger welcome.
Author:
bnasslashen
  • Field Details

  • Constructor Details

    • AbstractSwaggerWelcome

      protected AbstractSwaggerWelcome(SwaggerUiConfigProperties swaggerUiConfig, SpringDocConfigProperties springDocConfigProperties)
      Instantiates a new Abstract swagger welcome.
      Parameters:
      swaggerUiConfig - the swagger ui config
      springDocConfigProperties - the spring doc config properties
  • Method Details

    • init

      protected void init(SwaggerUiConfigParameters swaggerUiConfigParameters)
      Init.
      Parameters:
      swaggerUiConfigParameters - the swagger ui config parameters
    • buildUrl

      protected String buildUrl(String contextPath, String docsUrl)
      Build url string.
      Parameters:
      contextPath - the context path
      docsUrl - the docs url
      Returns:
      the string
    • buildConfigUrl

      protected void buildConfigUrl(SwaggerUiConfigParameters swaggerUiConfigParameters, org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
      Build config url.
      Parameters:
      swaggerUiConfigParameters - the swagger ui config parameters
      uriComponentsBuilder - the uri components builder
    • buildUrlWithContextPath

      protected abstract String buildUrlWithContextPath(SwaggerUiConfigParameters swaggerUiConfigParameters, String swaggerUiUrl)
      Build swagger ui url string.
      Parameters:
      swaggerUiConfigParameters - the swagger ui config parameters
      swaggerUiUrl - the swagger ui url
      Returns:
      the string
    • getUriComponentsBuilder

      protected org.springframework.web.util.UriComponentsBuilder getUriComponentsBuilder(SwaggerUiConfigParameters swaggerUiConfigParameters, String sbUrl)
      Gets uri components builder.
      Parameters:
      swaggerUiConfigParameters - the swagger ui config parameters
      sbUrl - the sb url
      Returns:
      the uri components builder
    • calculateOauth2RedirectUrl

      protected abstract void calculateOauth2RedirectUrl(SwaggerUiConfigParameters swaggerUiConfigParameters, org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
      Calculate oauth 2 redirect url.
      Parameters:
      swaggerUiConfigParameters - the swagger ui config parameters
      uriComponentsBuilder - the uri components builder
    • calculateUiRootPath

      protected abstract void calculateUiRootPath(SwaggerUiConfigParameters swaggerUiConfigParameters, StringBuilder... sbUrls)
      Calculate ui root path.
      Parameters:
      swaggerUiConfigParameters - the swagger ui config parameters
      sbUrls - the sb urls
    • calculateUiRootCommon

      protected void calculateUiRootCommon(SwaggerUiConfigParameters swaggerUiConfigParameters, StringBuilder sbUrl, StringBuilder[] sbUrls)
      Calculate ui root common.
      Parameters:
      swaggerUiConfigParameters - the swagger ui config parameters
      sbUrl - the sb url
      sbUrls - the sb urls
    • buildApiDocUrl

      protected abstract void buildApiDocUrl(SwaggerUiConfigParameters swaggerUiConfigParameters)
      Build api doc url string.
      Parameters:
      swaggerUiConfigParameters - the swagger ui config parameters
    • buildSwaggerConfigUrl

      protected abstract void buildSwaggerConfigUrl(SwaggerUiConfigParameters swaggerUiConfigParameters)
      Build swagger config url string.
      Parameters:
      swaggerUiConfigParameters - the swagger ui config parameters
    • getOauth2RedirectUrl

      protected String getOauth2RedirectUrl()
      Gets oauth2 redirect url.
      Returns:
      the oauth2 redirect url
    • getSwaggerUiUrl

      protected String getSwaggerUiUrl()
      Gets swagger ui url.
      Returns:
      the swagger ui url