@ Override public void makeSecure ( HttpServletRequest request , HttpServletResponse response ) throws IOException { response . setStatus ( HttpServletResponse . SC_MOVED_PERMANENTLY ) ; response . setHeader ( "Location" , secureUrl ( request , response ) ) ; response . getOutputStream ( ) . flush ( ) ; response . getOutputStream ( ) . close ( ) ; }
Sends a moved perminately redirect to the secure form of the request URL .