Skip to content

Commit 3791e7f

Browse files
committed
TimeZone and ZoneId as supported arguments for MVC handler methods
Issue: SPR-12575
1 parent 86b8112 commit 3791e7f

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
@@ -30937,25 +30937,27 @@ multiple requests are allowed to access a session concurrently.
3093730937
====
3093830938

3093930939
* `org.springframework.web.context.request.WebRequest` or
30940-
`org.springframework.web.context.request.NativeWebRequest`. Allows for generic request
30941-
parameter access as well as request/session attribute access, without ties to the
30942-
native Servlet/Portlet API.
30940+
`org.springframework.web.context.request.NativeWebRequest`. Allows for generic
30941+
request parameter access as well as request/session attribute access, without ties
30942+
to the native Servlet/Portlet API.
3094330943
* `java.util.Locale` for the current request locale, determined by the most specific
30944-
locale resolver available, in effect, the configured `LocaleResolver` in a Servlet
30945-
environment.
30946-
* `java.io.InputStream` / `java.io.Reader` for access to the request's content. This
30947-
value is the raw InputStream/Reader as exposed by the Servlet API.
30948-
* `java.io.OutputStream` / `java.io.Writer` for generating the response's content. This
30949-
value is the raw OutputStream/Writer as exposed by the Servlet API.
30944+
locale resolver available, in effect, the configured `LocaleResolver` /
30945+
`LocaleContextResolver` in an MVC environment.
30946+
* `java.util.TimeZone` (Java 6+) / `java.time.ZoneId` (on Java 8) for the time zone
30947+
associated with the current request, as determined by a `LocaleContextResolver`.
30948+
* `java.io.InputStream` / `java.io.Reader` for access to the request's content.
30949+
This value is the raw InputStream/Reader as exposed by the Servlet API.
30950+
* `java.io.OutputStream` / `java.io.Writer` for generating the response's content.
30951+
This value is the raw OutputStream/Writer as exposed by the Servlet API.
3095030952
* `org.springframework.http.HttpMethod` for the HTTP request method.
3095130953
* `java.security.Principal` containing the currently authenticated user.
3095230954
* `@PathVariable` annotated parameters for access to URI template variables. See
3095330955
<<mvc-ann-requestmapping-uri-templates>>.
30954-
* `@MatrixVariable` annotated parameters for access to name-value pairs located in URI
30955-
path segments. See <<mvc-ann-matrix-variables>>.
30956+
* `@MatrixVariable` annotated parameters for access to name-value pairs located in
30957+
URI path segments. See <<mvc-ann-matrix-variables>>.
3095630958
* `@RequestParam` annotated parameters for access to specific Servlet request
30957-
parameters. Parameter values are converted to the declared method argument type. See
30958-
<<mvc-ann-requestparam>>.
30959+
parameters. Parameter values are converted to the declared method argument type.
30960+
See <<mvc-ann-requestparam>>.
3095930961
* `@RequestHeader` annotated parameters for access to specific Servlet request HTTP
3096030962
headers. Parameter values are converted to the declared method argument type.
3096130963
See <<mvc-ann-requestheader>>.
@@ -30975,8 +30977,8 @@ multiple requests are allowed to access a session concurrently.
3097530977
(attributes stored temporarily on the server-side to make them available to the
3097630978
request after the redirect). `RedirectAttributes` is used instead of the implicit
3097730979
model if the method returns a "redirect:" prefixed view name or `RedirectView`.
30978-
* Command or form objects to bind request parameters to bean properties (via setters) or
30979-
directly to fields, with customizable type conversion, depending on `@InitBinder`
30980+
* Command or form objects to bind request parameters to bean properties (via setters)
30981+
or directly to fields, with customizable type conversion, depending on `@InitBinder`
3098030982
methods and/or the HandlerAdapter configuration. See the `webBindingInitializer`
3098130983
property on `RequestMappingHandlerAdapter`. Such command objects along with their
3098230984
validation results will be exposed as model attributes by default, using the command

0 commit comments

Comments
 (0)