Class DefaultSiteBaseUrlResolutionService
java.lang.Object
de.hybris.platform.acceleratorservices.urlresolver.impl.DefaultSiteBaseUrlResolutionService
- All Implemented Interfaces:
SiteBaseUrlResolutionService
- Direct Known Subclasses:
WsSiteBaseUrlResolutionService,WsSiteBaseUrlResolutionService
public class DefaultSiteBaseUrlResolutionService
extends Object
implements SiteBaseUrlResolutionService
Default implementation of the UrlResolutionService.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringappendQueryParams(String url, String params) protected StringcleanupUrl(String url) protected ConfigurationServiceprotected Map<SiteChannel,String> protected StringgetDefaultMediaUrlForSite(BaseSiteModel site, boolean secure) protected Stringprotected StringgetDefaultWebsiteUrlForSite(BaseSiteModel site, boolean secure, String path) getMediaUrlForSite(BaseSiteModel site, boolean secure) Resolves media base url for the given site.getMediaUrlForSite(BaseSiteModel site, boolean secure, String path) Resolves media base url for the given site.protected UrlEncoderServiceprotected StringgetWebsiteUrl(String baseUrl, String encodingAttributes, String path) getWebsiteUrlForSite(BaseSiteModel site, boolean secure, String path) Resolves website base url for the given site.getWebsiteUrlForSite(BaseSiteModel site, boolean secure, String path, String queryParams) getWebsiteUrlForSite(BaseSiteModel site, String encodingAttributes, boolean secure, String path) getWebsiteUrlForSite(BaseSiteModel site, String encodingAtrributes, boolean secure, String path, String queryParams) protected StringlookupConfig(String key) voidsetConfigurationService(ConfigurationService configurationService) voidsetContextRoots(Map<SiteChannel, String> contextRoots) voidsetUrlEncoderService(UrlEncoderService urlEncoderService)
-
Constructor Details
-
DefaultSiteBaseUrlResolutionService
public DefaultSiteBaseUrlResolutionService()
-
-
Method Details
-
getConfigurationService
-
setConfigurationService
-
getContextRoots
-
setContextRoots
-
getUrlEncoderService
-
setUrlEncoderService
-
getWebsiteUrlForSite
public String getWebsiteUrlForSite(BaseSiteModel site, String encodingAttributes, boolean secure, String path) - Specified by:
getWebsiteUrlForSitein interfaceSiteBaseUrlResolutionService- Returns:
- URL for the base site
-
getWebsiteUrl
-
getWebsiteUrlForSite
Description copied from interface:SiteBaseUrlResolutionServiceResolves website base url for the given site.- Specified by:
getWebsiteUrlForSitein interfaceSiteBaseUrlResolutionService- Parameters:
site- the base sitesecure- flag to indicate is HTTPS url is requiredpath- the path to include in the url- Returns:
- The URL for the website
-
getWebsiteUrlForSite
public String getWebsiteUrlForSite(BaseSiteModel site, boolean secure, String path, String queryParams) - Specified by:
getWebsiteUrlForSitein interfaceSiteBaseUrlResolutionService- Returns:
- URL for the base site
-
getWebsiteUrlForSite
public String getWebsiteUrlForSite(BaseSiteModel site, String encodingAtrributes, boolean secure, String path, String queryParams) - Specified by:
getWebsiteUrlForSitein interfaceSiteBaseUrlResolutionService- Returns:
- URL for the base site
-
getMediaUrlForSite
Description copied from interface:SiteBaseUrlResolutionServiceResolves media base url for the given site.- Specified by:
getMediaUrlForSitein interfaceSiteBaseUrlResolutionService- Parameters:
site- the base sitesecure- flag to indicate is HTTPS url is requiredpath- the path to include in the url- Returns:
- The URL for the media root
-
getMediaUrlForSite
Description copied from interface:SiteBaseUrlResolutionServiceResolves media base url for the given site.- Specified by:
getMediaUrlForSitein interfaceSiteBaseUrlResolutionService- Parameters:
site- the base sitesecure- flag to indicate is HTTPS url is required- Returns:
- The URL for the media root
-
lookupConfig
-
cleanupUrl
-
getDefaultWebsiteUrlForSite
-
getDefaultWebsiteContextRootForSite
-
appendQueryParams
-
getDefaultMediaUrlForSite
-