org.broadleafcommerce.common.web
Class BaseUrlResolverImpl

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

@Component(value="blBaseUrlResolver")
public class BaseUrlResolverImpl
extends Object
implements BaseUrlResolver


Field Summary
protected  RuntimeEnvironmentPropertiesManager propMgr
           
 
Constructor Summary
BaseUrlResolverImpl()
           
 
Method Summary
 String getAdminBaseUrl()
          Returns the currently configured base url for the admin.
 String getSiteBaseUrl()
          Returns the currently configured base url for the site.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propMgr

@Autowired
protected RuntimeEnvironmentPropertiesManager propMgr
Constructor Detail

BaseUrlResolverImpl

public BaseUrlResolverImpl()
Method Detail

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.