|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2021 the original author or authors. |
| 2 | + * Copyright 2002-2022 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
45 | 45 | * values from the model or with URI variables from the current request.
|
46 | 46 | *
|
47 | 47 | * <p>By default {@link HttpStatus#SEE_OTHER} is used but alternate status codes
|
48 |
| - * may be via constructor or setters arguments. |
| 48 | + * may be supplied via constructor or setters arguments. |
49 | 49 | *
|
50 | 50 | * @author Sebastien Deleuze
|
51 | 51 | * @author Rossen Stoyanchev
|
@@ -74,7 +74,7 @@ public RedirectView() {
|
74 | 74 |
|
75 | 75 | /**
|
76 | 76 | * Create a new {@code RedirectView} with the given redirect URL.
|
77 |
| - * Status code {@link HttpStatus#SEE_OTHER} is used by default. |
| 77 | + * <p>Status code {@link HttpStatus#SEE_OTHER} is used by default. |
78 | 78 | */
|
79 | 79 | public RedirectView(String redirectUrl) {
|
80 | 80 | super(redirectUrl);
|
@@ -109,9 +109,9 @@ public HttpStatus getStatusCode() {
|
109 | 109 | }
|
110 | 110 |
|
111 | 111 | /**
|
112 |
| - * Whether to interpret a given redirect URLs that starts with a slash ("/") |
113 |
| - * as relative to the current context path ({@code true}, the default) or to |
114 |
| - * the web server root ({@code false}). |
| 112 | + * Whether to interpret a given redirect URL that starts with a slash ("/") |
| 113 | + * as relative to the current context path ({@code true}, the default) or |
| 114 | + * relative to the web server root ({@code false}). |
115 | 115 | */
|
116 | 116 | public void setContextRelative(boolean contextRelative) {
|
117 | 117 | this.contextRelative = contextRelative;
|
@@ -141,7 +141,7 @@ public boolean isPropagateQuery() {
|
141 | 141 |
|
142 | 142 | /**
|
143 | 143 | * Configure one or more hosts associated with the application.
|
144 |
| - * All other hosts will be considered external hosts. |
| 144 | + * <p>All other hosts will be considered external hosts. |
145 | 145 | * <p>In effect this provides a way turn off encoding for URLs that
|
146 | 146 | * have a host and that host is not listed as a known host.
|
147 | 147 | * <p>If not set (the default) all redirect URLs are encoded.
|
@@ -301,7 +301,7 @@ protected Mono<Void> sendRedirect(String targetUrl, ServerWebExchange exchange)
|
301 | 301 | * property is configured and the target URL has a host that does not match.
|
302 | 302 | * @param targetUrl the target redirect URL
|
303 | 303 | * @return {@code true} the target URL has a remote host, {@code false} if it
|
304 |
| - * the URL does not have a host or the "host" property is not configured. |
| 304 | + * the URL does not have a host or the "host" property is not configured |
305 | 305 | */
|
306 | 306 | protected boolean isRemoteHost(String targetUrl) {
|
307 | 307 | if (ObjectUtils.isEmpty(this.hosts)) {
|
|
0 commit comments