Interface BaseUrlResolver

All Known Implementing Classes:
BaseUrlResolverImpl

public interface BaseUrlResolver
Responsible for providing the base url for the site / admin applications.
Author:
Andre Azzolini (apazzolini)
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the currently configured base url for the admin.
    Returns the currently configured base url for the site.
  • Method Details

    • getSiteBaseUrl

      String getSiteBaseUrl()
      Returns the currently configured base url for the site. The default implementation of this interface will return the value stored in the site.baseurl property for the current environment.

      For example, in a development environment, this method might return: http://localhost:8080

      Returns:
      the site baseurl, without a trailing slash
    • getAdminBaseUrl

      String getAdminBaseUrl()
      Returns the currently configured base url for the admin. The default implementation of this interface will return the value stored in the admin.baseurl property for the current environment.

      For example, in a development environment, this method might return: http://localhost:8080/admin

      Returns:
      the admin baseurl, without a trailing slash