Class BaseUrlProviders

java.lang.Object
org.springframework.boot.test.http.server.BaseUrlProviders

public class BaseUrlProviders extends Object
A collection of BaseUrlProvider instances loaded from spring.factories.
Since:
4.0.0
Author:
Phillip Webb
  • Constructor Details

  • Method Details

    • getBaseUrlOrDefault

      public BaseUrl getBaseUrlOrDefault()
      Return the provided BaseUrl or BaseUrl.DEFAULT.
      Returns:
      the base URL
    • getBaseUrl

      public @Nullable BaseUrl getBaseUrl()
      Return the provided BaseUrl or null.
      Returns:
      the base URL or null
    • getBaseUrl

      @Contract("!null -> !null") public @Nullable BaseUrl getBaseUrl(@Nullable BaseUrl fallback)
      Return the provided BaseUrl or the given fallback.
      Parameters:
      fallback - the fallback
      Returns:
      the base URL or the fallback