Class StaticMappingsSiteResolver
- java.lang.Object
-
- org.craftercms.engine.service.context.StaticMappingsSiteResolver
-
- All Implemented Interfaces:
SiteListResolver
,SiteResolver
public class StaticMappingsSiteResolver extends Object implements SiteListResolver, SiteResolver
SiteResolver
that resolves the current site name from a set of static mappings, where the mapping key is a domain name, and the value is the site name.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description StaticMappingsSiteResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
getSiteList()
Returns the entire list of sites.String
getSiteName(javax.servlet.http.HttpServletRequest request)
void
setMappings(Map<String,String> mappings)
-
-
-
Method Detail
-
getSiteList
public Collection<String> getSiteList()
Description copied from interface:SiteListResolver
Returns the entire list of sites.- Specified by:
getSiteList
in interfaceSiteListResolver
-
getSiteName
public String getSiteName(javax.servlet.http.HttpServletRequest request)
- Specified by:
getSiteName
in interfaceSiteResolver
-
-