/** * Create a new {@code RedirectView} with the given URL and an alternate * redirect status code such as {@link HttpStatus#TEMPORARY_REDIRECT} or * {@link HttpStatus#PERMANENT_REDIRECT}. */ public RedirectView(String redirectUrl, HttpStatus statusCode) { super(redirectUrl); setStatusCode(statusCode); }
/** * Create a new {@code RedirectView} with the given URL and an alternate * redirect status code such as {@link HttpStatus#TEMPORARY_REDIRECT} or * {@link HttpStatus#PERMANENT_REDIRECT}. */ public RedirectView(String redirectUrl, HttpStatus statusCode) { super(redirectUrl); setStatusCode(statusCode); }