Class DefaultUrlResolver
java.lang.Object
com.broadleafcommerce.tenant.service.DefaultUrlResolver
- All Implemented Interfaces:
- UrlResolver
Default implementation of 
UrlResolver that leverages the UrlResolverProperties.UrlResolverConfiguration
 for resolving admin or application URLs.- Author:
- Nick Crum (ncrum)
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuildUrl(String identifierType, String identifierValue, UrlResolverProperties.UrlResolverConfiguration config) getAdminUrl(Tenant tenant) Resolves the full url of the admin for the provided tenant.getApplicationUrl(Application application) Resolves the full url for the provided application.protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected UrlResolverPropertiesgetProps()protected String
- 
Constructor Details- 
DefaultUrlResolver
 
- 
- 
Method Details- 
getApplicationUrlDescription copied from interface:UrlResolverResolves the full url for the provided application. This is used for discovery of the location where an application is served.- Specified by:
- getApplicationUrlin interface- UrlResolver
- Parameters:
- application- the application
- Returns:
- the full url string for the application
 
- 
getAdminUrlDescription copied from interface:UrlResolverResolves the full url of the admin for the provided tenant. This is used for discovery of the location where the admin is served.- Specified by:
- getAdminUrlin interface- UrlResolver
- Parameters:
- tenant- the tenant
- Returns:
- the full url string for the tenant
 
- 
buildUrlprotected Optional<String> buildUrl(@NonNull String identifierType, @NonNull String identifierValue, @NonNull UrlResolverProperties.UrlResolverConfiguration config) 
- 
getScheme
- 
getHostPrefix
- 
getHostDomain
- 
getPath
- 
getPort
- 
getParameter
- 
getProps
 
-