Johnny Lim
64e9fcad53
Apply SingleSpaceSeparator Checkstyle module
...
This commit also fixes its violations.
Closes gh-31469
2023-10-22 14:09:57 +02:00
Johnny Lim
919faa2ce2
Order modifiers to align with JLS
...
This commit also applies Checkstyle ModifierOrder to enforce it.
See gh-31368
2023-10-17 16:13:56 +02:00
Sam Brannen
32b4f55d92
Update copyright headers
2023-10-16 16:19:55 +02:00
rstoyanchev
b5b9386be6
Polishing
...
Closes gh-31413
2023-10-13 11:47:47 +01:00
Olga MaciaszekSharma
0cd196e3dd
Add UriBuilderFactoryArgumentResolver
...
See gh-31413
2023-10-13 11:47:47 +01:00
Sébastien Deleuze
e0ba42a80c
Move ReactorResourceFactory to org.springframework.http.client package
...
Closes gh-31399
2023-10-10 15:58:20 +02:00
Arjen Poutsma
307a2c7d7b
Polishing external contribution
...
See gh-29985
2023-10-10 14:16:00 +02:00
Jakob Fels
ad50de169c
Provide access to HTTP headers in resource routing
...
This commit adds additional overloaded methods that allow for HTTP
header manipulation of served resources.
Closes gh-29985
2023-10-10 14:16:00 +02:00
Sam Brannen
45d8aadb0a
Polishing
2023-09-27 10:19:51 +02:00
Stéphane Nicoll
7a05d23597
Polish contribution
...
See gh-31320
2023-09-27 08:58:11 +02:00
Sébastien Deleuze
20df52e543
Merge branch '6.0.x'
2023-09-15 18:16:26 +02:00
Sébastien Deleuze
ce0923b946
Remove Reactor Netty 2 from integration tests
...
Closes gh-31243
2023-09-15 18:15:26 +02:00
Arjen Poutsma
056de7e898
Enable disabled multi-part Netty 2 tests
...
See gh-31110
2023-09-15 14:20:12 +02:00
Sébastien Deleuze
68ba55bea9
Fix ModelInitializerKotlinTests
...
See gh-30894
2023-09-13 18:30:01 +02:00
Sébastien Deleuze
bb85d9b5e4
Merge branch '6.0.x'
2023-09-13 18:07:59 +02:00
Sébastien Deleuze
29a4dabbe7
Support @ModelAttribute with suspending function in WebFlux
...
Closes gh-30894
2023-09-13 17:59:39 +02:00
Sam Brannen
c23795a8a6
Update copyright headers
2023-09-13 13:57:51 +02:00
Arjen Poutsma
c5c843696b
Polishing external contribution
2023-09-12 12:34:44 +02:00
James Yuzawa
39786e4790
Improve attribute handling in RequestPredicates
...
This commit changes the way request attributes are handled in
RequestPredicates. Previously, the AND/OR/NOT predicates copied all
attributes in a map, and restored that when the delegate predicate(s)
failed.
Now, we only set the attributes when all delegates have succeeded.
Closes gh-30028
2023-09-12 12:34:44 +02:00
Sam Brannen
40f1cf67bd
Polish DefaultClientResponseTests and suppress "unchecked" warnings
2023-09-08 15:21:48 +02:00
Sam Brannen
c3a0022c9e
Polish DefaultClientResponseTests and suppress "unchecked" warnings
2023-09-07 17:09:31 +02:00
rstoyanchev
fefbeeeb18
Merge branch '6.0.x'
2023-09-07 15:27:56 +01:00
rstoyanchev
a6b567a630
Polishing
2023-09-07 15:27:40 +01:00
rstoyanchev
7a516170ef
WebClientResponseException supports decoding empty content
...
Closes gh-31179
2023-09-07 15:27:40 +01:00
rstoyanchev
b068742ec8
Support method validation for Lists in WebMvc and WebFlux
...
Closes gh-31120
2023-09-04 13:22:09 +01:00
Arjen Poutsma
6597727c86
Upgrade to Jetty 12
...
This commit upgrades Spring Framework to Jetty 12.0.1, and Reactive HTTP
Client 4.0.0.
Closes gh-30698
2023-09-04 14:03:29 +02:00
rstoyanchev
32f128b6ba
Add create static factory method to WebClientAdapter
...
Closes gh-31120
2023-08-30 16:37:28 +01:00
Sébastien Deleuze
38392233ba
Add context function to CoRouterFunctionDsl
...
This new function allows to customize the CoroutineContext
potentially dynamically based on the incoming
ServerRequest.
Closes gh-27010
2023-08-29 12:59:35 +02:00
Sébastien Deleuze
d47c7f9552
Propagate CoroutineContext in coRouter filters
...
Closes gh-26977
2023-08-29 10:40:32 +02:00
Sam Brannen
e737e6d9ba
Update copyright headers
2023-08-25 17:07:17 +02:00
Sébastien Deleuze
21613eabf1
Properly use Reactor Netty 2 in AbstractHttpHandlerIntegrationTests
...
Closes gh-31095
2023-08-24 10:46:43 +02:00
Sébastien Deleuze
334b1548b7
Merge branch '6.0.x'
...
Adapt gh-31045 fix to the main branch, and throw a
WebExchangeBindException instead of a ServerWebInputException.
2023-08-18 15:11:16 +02:00
Sébastien Deleuze
e6565c600a
Refine type conversion errors in ModelAttributeMethodProcessor
...
This commit turns TypeMismatchException thrown in
ModelAttributeMethodArgumentResolver#createAttribute into
proper ServerWebInputException in order get HTTP response
with 400 Bad Request status code instead of 500 Internal error.
Closes gh-31045
2023-08-18 14:31:43 +02:00
Sébastien Deleuze
8af9648c43
Polish ModelAttributeMethodArgumentResolverTests
2023-08-18 12:47:44 +02:00
Arjen Poutsma
34477b4f03
Schedule FreeMarker template lookup on bounded elastic scheduler
...
This commit makes sure that FreeMarker template lookups, which
potentially block, are scheduled on the bounded elastic scheduler.
Closes gh-30903
2023-08-17 16:42:44 +02:00
rstoyanchev
6630b16771
Polishing
...
See gh-30980
2023-08-04 18:21:42 +03:00
Olga MaciaszekSharma
d1d5b54f12
Support @HttpExchange for server-side handling
...
See gh-30980
2023-08-04 18:21:42 +03:00
rstoyanchev
78d0dbb519
Ensure handling of 404 errors for static resources
...
Closes gh-30930
2023-07-27 22:13:10 +03:00
Sam Brannen
01ceee8de5
Polishing
2023-07-15 13:36:11 +02:00
Johnny Lim
be8bfad3af
Enable KotlinScriptTemplateTests in Spring WebFlux on Java 20
...
See gh-29249
Closes gh-30896
2023-07-15 13:35:59 +02:00
Sam Brannen
70cf754a2f
Suppress warnings in tests
2023-07-15 13:02:16 +02:00
rstoyanchev
b016f385e1
Add BlockingExecutionConfigurer to WebFlux config
...
Closes gh-30678
2023-07-12 16:55:02 +01:00
rstoyanchev
74972fb751
Add updateModel to BindingContext
...
The method includes logic that is currently in
ViewResolutionResultHandler but fits well in BindingContext and also
includes the call to saveModel method from the InitBinderBindingContext
subclass, which was called too early until now from
RequestMappingHandlerAdapter before the model has been fully updated.
This mirrors a similar method in ModelFactory on the Spring MVC side
which also combines those two tasks.
Closes gh-30821
2023-07-11 16:34:03 +01:00
Arjen Poutsma
d04d7b2e57
Add request binding to functional endpoints
...
This commit introduces form binding to ServerRequest in both WebMVC.fn
and WebFlux.fn's, in the form of a bind(Class) method.
Closes gh-25943
2023-07-11 09:52:39 +02:00
Rossen Stoyanchev
22376c2efa
Polishing
...
See gh-30117
2023-07-10 11:24:30 +01:00
Rossen Stoyanchev
068dc7db28
Remove use of TestHttpClientAdapter
...
Now that HttpClientAdapter is deprecated and replaced by HttpExchangeAdapter
and ReactorHttpExchangeAdapter, our tests should use the new contracts.
See gh-30117
2023-07-10 10:36:16 +01:00
Sébastien Deleuze
b3de1b8e95
Use consistently *KotlinTests naming for Kotlin tests
...
Closes gh-30837
2023-07-08 11:02:20 +02:00
Sébastien Deleuze
fb17e283d1
Replace @link by proper KDoc class reference in tests
...
Closes gh-30836
2023-07-08 10:44:40 +02:00
Olga MaciaszekSharma
268f3c853e
Add RestTemplate support for HTTP interface client
...
See gh-30117
2023-07-06 19:07:40 +02:00
Sébastien Deleuze
d3a249e34d
Reduce the delay used for Coroutines in tests
...
Closes gh-30731
2023-06-23 14:17:56 +02:00