Code example for ServletWebRequest

0
 */ 
public class NullBroadleafSiteResolver implements BroadleafSiteResolver { 
 
    @Override 
    public Site resolveSite(HttpServletRequest request) { 
        return resolveSite(new ServletWebRequest(request)); 
    } 
     
    @Override 
    public Site resolveSite(WebRequest request) { 
        return resolveSite(request, false); 
    } 
 
    @Override 
    public Site resolveSite(WebRequest request, boolean allowNullSite) throws SiteNotFoundException { 
        return null; 
    } 
     
} 
Experience pair programming with AI  Get Codota for Java