Package org.broadleafcommerce.common.web
Class BaseUrlResolverImpl
java.lang.Object
org.broadleafcommerce.common.web.BaseUrlResolverImpl
- All Implemented Interfaces:
BaseUrlResolver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the currently configured base url for the admin.Returns the currently configured base url for the site.
-
Field Details
-
env
@Autowired protected org.springframework.core.env.Environment env
-
-
Constructor Details
-
BaseUrlResolverImpl
public BaseUrlResolverImpl()
-
-
Method Details
-
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 interfaceBaseUrlResolver
- Returns:
- the site baseurl, without a trailing slash
-
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 interfaceBaseUrlResolver
- Returns:
- the admin baseurl, without a trailing slash
-