Class BaseUrlResolverImpl

java.lang.Object
org.broadleafcommerce.common.web.BaseUrlResolverImpl
All Implemented Interfaces:
BaseUrlResolver

public class BaseUrlResolverImpl extends Object implements BaseUrlResolver
  • Field Details

    • env

      @Autowired protected org.springframework.core.env.Environment env
  • Constructor Details

    • BaseUrlResolverImpl

      public BaseUrlResolverImpl()
  • Method Details

    • getSiteBaseUrl

      public String getSiteBaseUrl()
      Description copied from interface: BaseUrlResolver
      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

      Specified by:
      getSiteBaseUrl in interface BaseUrlResolver
      Returns:
      the site baseurl, without a trailing slash
    • getAdminBaseUrl

      public String getAdminBaseUrl()
      Description copied from interface: BaseUrlResolver
      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

      Specified by:
      getAdminBaseUrl in interface BaseUrlResolver
      Returns:
      the admin baseurl, without a trailing slash