public boolean shouldRedirectToHttps ( WebRequest webRequest ) { HttpServletRequest req = webRequest . getHttpServletRequest ( ) ; return ! req . isSecure ( ) && webRequest . isSSLRequired ( ) ; }
Determines if HTTPS redirect is required for this request .