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
-
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 String
protected String
protected String
protected String
protected String
protected UrlResolverProperties
getProps()
protected String
-
Constructor Details
-
DefaultUrlResolver
-
-
Method Details
-
getApplicationUrl
Description copied from interface:UrlResolver
Resolves the full url for the provided application. This is used for discovery of the location where an application is served.- Specified by:
getApplicationUrl
in interfaceUrlResolver
- Parameters:
application
- the application- Returns:
- the full url string for the application
-
getAdminUrl
Description copied from interface:UrlResolver
Resolves 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:
getAdminUrl
in 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
-