Package org.broadleafcommerce.common.web
Interface BroadleafSiteResolver
- All Known Implementing Classes:
NullBroadleafSiteResolver
public interface BroadleafSiteResolver
Responsible for returning the site used by Broadleaf Commerce for the current request.
For a single site installation, this will typically return null.
- Author:
- bpolster
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionresolveSite
(jakarta.servlet.http.HttpServletRequest request) Deprecated.resolveSite
(org.springframework.web.context.request.WebRequest request) resolveSite
(org.springframework.web.context.request.WebRequest request, boolean allowNullSite) Resolves a site for the given WebRequest.
-
Field Details
-
SELECTED_SITE_URL_PARAM
- See Also:
-
-
Method Details
-
resolveSite
@Deprecated Site resolveSite(jakarta.servlet.http.HttpServletRequest request) throws SiteNotFoundException Deprecated.UseresolveSite(WebRequest)
instead- Throws:
SiteNotFoundException
-
resolveSite
Site resolveSite(org.springframework.web.context.request.WebRequest request) throws SiteNotFoundException - Throws:
SiteNotFoundException
- See Also:
-
resolveSite
Site resolveSite(org.springframework.web.context.request.WebRequest request, boolean allowNullSite) throws SiteNotFoundException Resolves a site for the given WebRequest. Implementations should throw aSiteNotFoundException
when a site could not be resolved unless the allowNullSite parameter is set to true.- Parameters:
request
-allowNullSite
-- Returns:
- the resolved
Site
- Throws:
SiteNotFoundException
-
resolveSite(WebRequest)
instead