public static Response withRedirect ( String redirectTo ) { Objects . requireNonNull ( redirectTo , Required . REDIRECT_TO . toString ( ) ) ; return new Response ( redirectTo ) ; }
Creates a response object with a given url to redirect to