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 Summary
Constructors -
Method Summary
Modifier 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
-
getApplicationUrl
Description 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 interfaceUrlResolver- Parameters:
application- the application- Returns:
- the full url string for the application
-
getAdminUrl
Description 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 interfaceUrlResolver- Parameters:
tenant- the tenant- Returns:
- the full url string for the tenant
-
buildUrl
protected Optional<String> buildUrl(@NonNull String identifierType, @NonNull String identifierValue, @NonNull UrlResolverProperties.UrlResolverConfiguration config) -
getScheme
-
getHostPrefix
-
getHostDomain
-
getPath
-
getPort
-
getParameter
-
getProps
-