Skip to content

Commit b9aa471

Browse files
committed
TimeZone and ZoneId as supported arguments for MVC handler methods
Issue: SPR-12575 (cherry picked from commit 3791e7f)
1 parent 39fbfbd commit b9aa471

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/asciidoc/index.adoc

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29008,25 +29008,27 @@ multiple requests are allowed to access a session concurrently.
2900829008
====
2900929009

2901029010
* `org.springframework.web.context.request.WebRequest` or
29011-
`org.springframework.web.context.request.NativeWebRequest`. Allows for generic request
29012-
parameter access as well as request/session attribute access, without ties to the
29013-
native Servlet/Portlet API.
29011+
`org.springframework.web.context.request.NativeWebRequest`. Allows for generic
29012+
request parameter access as well as request/session attribute access, without ties
29013+
to the native Servlet/Portlet API.
2901429014
* `java.util.Locale` for the current request locale, determined by the most specific
29015-
locale resolver available, in effect, the configured `LocaleResolver` in a Servlet
29016-
environment.
29017-
* `java.io.InputStream` / `java.io.Reader` for access to the request's content. This
29018-
value is the raw InputStream/Reader as exposed by the Servlet API.
29019-
* `java.io.OutputStream` / `java.io.Writer` for generating the response's content. This
29020-
value is the raw OutputStream/Writer as exposed by the Servlet API.
29015+
locale resolver available, in effect, the configured `LocaleResolver` /
29016+
`LocaleContextResolver` in an MVC environment.
29017+
* `java.util.TimeZone` (Java 6+) / `java.time.ZoneId` (on Java 8) for the time zone
29018+
associated with the current request, as determined by a `LocaleContextResolver`.
29019+
* `java.io.InputStream` / `java.io.Reader` for access to the request's content.
29020+
This value is the raw InputStream/Reader as exposed by the Servlet API.
29021+
* `java.io.OutputStream` / `java.io.Writer` for generating the response's content.
29022+
This value is the raw OutputStream/Writer as exposed by the Servlet API.
2902129023
* `org.springframework.http.HttpMethod` for the HTTP request method.
2902229024
* `java.security.Principal` containing the currently authenticated user.
2902329025
* `@PathVariable` annotated parameters for access to URI template variables. See
2902429026
<<mvc-ann-requestmapping-uri-templates>>.
29025-
* `@MatrixVariable` annotated parameters for access to name-value pairs located in URI
29026-
path segments. See <<mvc-ann-matrix-variables>>.
29027+
* `@MatrixVariable` annotated parameters for access to name-value pairs located in
29028+
URI path segments. See <<mvc-ann-matrix-variables>>.
2902729029
* `@RequestParam` annotated parameters for access to specific Servlet request
29028-
parameters. Parameter values are converted to the declared method argument type. See
29029-
<<mvc-ann-requestparam>>.
29030+
parameters. Parameter values are converted to the declared method argument type.
29031+
See <<mvc-ann-requestparam>>.
2903029032
* `@RequestHeader` annotated parameters for access to specific Servlet request HTTP
2903129033
headers. Parameter values are converted to the declared method argument type.
2903229034
* `@RequestBody` annotated parameters for access to the HTTP request body. Parameter
@@ -29045,8 +29047,8 @@ multiple requests are allowed to access a session concurrently.
2904529047
(attributes stored temporarily on the server-side to make them available to the
2904629048
request after the redirect). `RedirectAttributes` is used instead of the implicit
2904729049
model if the method returns a "redirect:" prefixed view name or `RedirectView`.
29048-
* Command or form objects to bind request parameters to bean properties (via setters) or
29049-
directly to fields, with customizable type conversion, depending on `@InitBinder`
29050+
* Command or form objects to bind request parameters to bean properties (via setters)
29051+
or directly to fields, with customizable type conversion, depending on `@InitBinder`
2905029052
methods and/or the HandlerAdapter configuration. See the `webBindingInitializer`
2905129053
property on `RequestMappingHandlerAdapter`. Such command objects along with their
2905229054
validation results will be exposed as model attributes by default, using the command

0 commit comments

Comments
 (0)