Code example for ServletWebRequest

0
public class SignInController extends AbstractController { 
 
	@RequestMapping(value = "/signin", method = RequestMethod.GET) 
	public String showHomePage(ModelMap model, HttpServletRequest request) { 
        // todo: remove this 
        Connection<?> connection = ProviderSignInUtils.getConnection(new ServletWebRequest(request)); 
        if (connection != null) { 
            loggingComponent.error(this, "Connection is null"); 
        } 
 
        addCommonAttributes(model); 
        setPageTitle(model, "Sign in"); 
 
		return "signin"; 
	} 
 
    @RequestMapping(value = "/signup", method = RequestMethod.GET) 
   	public String showHomePage(ModelMap model) { 
           addCommonAttributes(model); 
           setPageTitle(model, "Sign up"); 
Experience pair programming with AI  Get Codota for Java