Juergen Hoeller
254a55d217
Merge branch '6.2.x'
...
# Conflicts:
# framework-platform/framework-platform.gradle
2025-05-13 16:31:05 +02:00
Juergen Hoeller
73f1c5a189
Polishing
2025-05-13 16:08:57 +02:00
Martin Mois
261862076c
Use system properties in ReactorClientHttpRequestFactory
...
Closes gh-34850
Signed-off-by: Martin Mois <martin.mois@gmail.com >
2025-05-13 15:18:03 +02:00
rstoyanchev
97d5f7f07d
Fix filtering in HttpServiceProxyRegistryFactoryBean
...
Closes gh-34867
2025-05-07 22:53:33 +01:00
rstoyanchev
e5d4d7c13c
Refactor DefaultApiVersionInserter
2025-05-06 20:36:56 +01:00
rstoyanchev
22e7f24731
Add defaultApiVersion to RestClient and WebClient
...
Closes gh-34857
2025-05-06 19:07:58 +01:00
Brian Clozel
4a99fa8846
Merge branch '6.2.x'
2025-05-05 14:51:34 +02:00
Brian Clozel
6f11711e27
Fix HttpClient 5.3.x request config compatibility
...
As of gh-33806, the HttpComponents client request factory is forward
compatible with the 5.4+ versions of that library for configuring HTTP
request configuration.
This change would not tkae into account configuration set at the Spring
level because it would consider the default `RequestConfig` instance as
a custom one. This commit ensures that Spring sets its own configuration
if no custom configuration was set for all supported HttpComponents
generations.
Fixes gh-34851
2025-05-05 14:38:30 +02:00
rstoyanchev
67f3ff574f
Polishing in HTTP service registry
2025-05-01 11:00:32 +01:00
Phillip Webb
42e854e5ff
Polish AbstractHttpServiceRegistrar.DefaultGroupSpec
...
Remove `DefaultGroupRegistry` since it's not really needed and polish
`DefaultGroupSpec` a little.
2025-05-01 11:00:32 +01:00
Phillip Webb
d2246162c3
Polish GroupsMetadata.Registration
...
Unify `Registration` and `DefualtRegistration` into a single
class since they are both package-private and the interface
isn't really needed.
2025-05-01 11:00:32 +01:00
Phillip Webb
abbee1a050
Use bean class loader when creating interface clients
...
Update interface client code to replace `GroupsMetadata.loadClass` calls
with `ClassUtils.resolveClassName` passing in the bean class loader.
Since the bean class loader in injected after construction, some minor
refactoring has been applied to `HttpServiceProxyRegistryFactoryBean`.
The class now stores `GroupsMetadata` and only loads the types in
in `afterPropertiesSet`.
The `HttpServiceProxyFactory` class has also been updated to ensure
that the proxy is created using the class loader of the service
type, rather than the thread context class loader.
Fixes gh-34846
2025-05-01 11:00:32 +01:00
Juergen Hoeller
d0a1ba5092
Merge branch '6.2.x'
2025-04-30 17:56:36 +02:00
Juergen Hoeller
4466548f53
Align parameter javadoc with nullable signature
...
Closes gh-34845
2025-04-30 17:55:39 +02:00
rstoyanchev
86b5679516
Add remaining change from merge
2025-04-28 14:40:52 +01:00
rstoyanchev
8375962813
Merge branch '6.2.x'
2025-04-28 14:29:58 +01:00
rstoyanchev
c88ba6c90e
Polishing contribution
...
Closes gh-34812
2025-04-28 14:23:30 +01:00
Yanming Zhou
d7c13d6518
HttpEntity.EMPTY should be immutable
...
See gh-34812
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com >
2025-04-28 14:22:59 +01:00
rstoyanchev
d8503daa1f
Revise how bodyType is set for 7.0 codebase
...
See gh-34793
2025-04-25 21:41:11 +01:00
rstoyanchev
fed6e9b3c3
Merge branch '6.2.x'
2025-04-25 21:33:03 +01:00
rstoyanchev
c48ff357dc
HTTP Service proxy sets body type
...
Closes gh-34793
2025-04-25 21:03:00 +01:00
Sébastien Deleuze
ead76b6317
Merge branch '6.2.x'
2025-04-24 10:39:39 +02:00
Sébastien Deleuze
56eb135608
Fix AbstractJackson2HttpMessageConverter nullness
...
This commit makes AbstractJackson2HttpMessageConverter#getObjectMappersForType
return value non nullable as an empty map is returned in case of no
registrations.
Closes gh-34811
2025-04-24 10:37:30 +02:00
rstoyanchev
2a3e7ea3f9
Merge branch '6.2.x'
2025-04-23 12:11:28 +01:00
rstoyanchev
858c2bd270
Polishing contribution
...
Closes gh-34783
2025-04-23 10:54:52 +01:00
whl
124582d910
Fix expansion of query param with same name
...
See gh-34783
Signed-off-by: whl <whlit.cola@gmail.com >
2025-04-23 10:54:52 +01:00
Juergen Hoeller
f2dd7b01cd
Consistent final @Nullable declarations
2025-04-22 12:25:01 +02:00
Olga Maciaszek-Sharma
b24f4edbec
HttpServiceGroupConfigurer extends Ordered
...
Closes gh-34739
Signed-off-by: Olga Maciaszek-Sharma <olga.maciaszek-sharma@broadcom.com >
2025-04-15 17:33:34 +01:00
rstoyanchev
4599ad4168
HttpServiceProxyRegistry Javadoc updates
...
See gh-33992
2025-04-15 17:27:48 +01:00
rstoyanchev
40853825dc
Add HttpRequestValues.Processor
...
Closes gh-34699
2025-04-15 17:25:34 +01:00
Stéphane Nicoll
88e773ae24
Add AOT support for Registry of HTTP Interface Proxies
...
This commit adds AOT support for restoring the state of the
HttpServiceProxyRegistry. This generates code for the groupsMetadata
as well as for the creation of the client proxies.
Closes gh-34750
2025-04-15 17:29:43 +02:00
Sam Brannen
5fb37e3133
Polishing
2025-04-15 15:19:34 +02:00
rstoyanchev
76ba02ec3e
Update HttpServiceProxyRegistry
...
See gh-33992
2025-04-14 17:45:49 +01:00
Sam Brannen
23aea5c402
Merge branch '6.2.x'
2025-04-14 11:32:48 +02:00
Sam Brannen
7095f4cb66
Use proper casing for parameter and variable names
2025-04-14 11:25:40 +02:00
Sam Brannen
a22d204681
Remove duplicate words in Java source code
...
Discovered using regular expression: \b(\w+)\s+\1\b[^(}]
2025-04-14 11:24:55 +02:00
Sam Brannen
df4868bf83
Merge branch '6.2.x'
2025-04-10 16:49:43 +02:00
Sam Brannen
cd987fc104
Update Javadoc to stop mentioning 5.3.x as the status quo
...
Closes gh-34740
2025-04-10 16:40:04 +02:00
Sébastien Deleuze
eee45c3583
Refine CORS preflight requests handling with no configuration
...
This commit makes CORS preflight requests handling more flexible
by just skipping setting CORS response headers when no
configuration is defined instead of rejecting them.
That will have the same effect on user agent side (the preflight
request will be considered as not authorized and the actual
request not performed) but is more flexible and more efficient.
Closes gh-31839
2025-04-04 21:32:38 +02:00
Sam Brannen
a9cab2a3f1
Polishing
2025-04-03 11:19:53 +02:00
Sam Brannen
d10d8e98c2
Remove default value for Container annotation
2025-04-03 10:59:33 +02:00
Sam Brannen
6576c52ed3
Remove unused code
2025-04-03 10:58:51 +02:00
Sam Brannen
71b6dcfa7e
Merge branch '6.2.x'
2025-04-03 10:48:28 +02:00
Sam Brannen
8f9cbcd86d
Add @since tags
...
See gh-34692
2025-04-03 10:33:19 +02:00
Sébastien Deleuze
e9c4665a80
Merge branch '6.2.x'
2025-04-02 18:05:04 +02:00
Taeik Lim
a946fe2bf8
Fix broken link for Server-Sent Events
...
Signed-off-by: Taeik Lim <sibera21@gmail.com >
Closes gh-34705
2025-04-02 17:43:42 +02:00
Sébastien Deleuze
b94ab90eb2
Merge branch '6.2.x'
2025-04-02 17:10:56 +02:00
Sébastien Deleuze
671d972454
Add RestClient.RequestHeadersSpec#exchangeForRequiredValue
...
This commit adds a variant to RestClient.RequestHeadersSpec#exchange
suitable for functions returning non-null values.
Closes gh-34692
2025-04-02 17:10:01 +02:00
Sébastien Deleuze
d9047d39e6
Refine ExchangeFunction Javadoc
...
See gh-34692
2025-04-02 17:10:01 +02:00
Sébastien Deleuze
4db12806d1
Revert "Add a requiredExchange extension to RestClient"
...
This reverts commit dcb9383ba1 .
See gh-34692
2025-04-02 17:10:01 +02:00