@@ -2512,13 +2512,14 @@ The following convenience methods exist in the
2512
2512
2513
2513
* `sendError`
2514
2514
2515
- The `sendRedirect` method will set the
2516
- appropriate headers and content body to redirect the client to a
2517
- different URL. It is legal to call this method with a relative URL path,
2518
- however the underlying container must translate the relative path to a
2519
- fully qualified URL for transmission back to the client. If a partial
2520
- URL is given and, for whatever reason, cannot be converted into a valid
2521
- URL, then this method must throw an `IllegalArgumentException`.
2515
+ The `sendRedirect` method will set the appropriate headers and content body to
2516
+ redirect the client to a different URL.
2517
+ It is legal to call this method with a relative URL path.
2518
+ The underlying container may provide an option to use the relative URL path as
2519
+ provided but if no such option is provided it must translate the relative path
2520
+ to a fully qualified URL for transmission back to the client.
2521
+ If a partial URL is given and, for whatever reason, cannot be converted into a
2522
+ valid URL, then this method must throw an `IllegalArgumentException`.
2522
2523
2523
2524
The `sendError` method will set the
2524
2525
appropriate headers and content body for an error message to return to
@@ -8559,6 +8560,10 @@ link:https://github.com/eclipse-ee4j/servlet-api/issues/164[Issue 164]::
8559
8560
Clarify Javadoc for `ServletResponse` and `HttpServletResponse` methods that are
8560
8561
NO-OPs once the response has been committed.
8561
8562
8563
+ link:https://github.com/eclipse-ee4j/servlet-api/issues/275[Issue 275]::
8564
+ Containers may provide an option to send redirects using a location header with
8565
+ a relative URL.
8566
+
8562
8567
link:https://github.com/eclipse-ee4j/servlet-api/issues/325[Issue 325]::
8563
8568
Clarify the behaviour of `getDateHeader()` and `getIntHeader()` when multiple
8564
8569
headers with the same name are present in the `HttpServletRequest`. The expected
0 commit comments