Interface AbsoluteUrlBuilder

All Known Subinterfaces:
OauthRouteUrlBuilder
All Known Implementing Classes:
DefaultOauthRouteUrlBuilder

public interface AbsoluteUrlBuilder
Builds an absolute URL for the current server.
Since:
1.2.0
Author:
James Kleeh
  • Method Summary

    Modifier and Type
    Method
    Description
    buildUrl(io.micronaut.http.HttpRequest<?> current, String path)
    Builds an absolute URL for the given path.
  • Method Details

    • buildUrl

      URL buildUrl(@Nullable io.micronaut.http.HttpRequest<?> current, String path)
      Builds an absolute URL for the given path.
      Parameters:
      current - The current request
      path - The path
      Returns:
      The absolute URL