org.broadleafcommerce.common.web
Class BaseUrlResolverImpl
java.lang.Object
org.broadleafcommerce.common.web.BaseUrlResolverImpl
- All Implemented Interfaces:
- BaseUrlResolver
@Component(value="blBaseUrlResolver")
public class BaseUrlResolverImpl
- extends Object
- implements BaseUrlResolver
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
propMgr
@Autowired
protected RuntimeEnvironmentPropertiesManager propMgr
BaseUrlResolverImpl
public BaseUrlResolverImpl()
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
Copyright © 2013. All Rights Reserved.