Commit Graph

51429 Commits

Author SHA1 Message Date
Phillip Webb
39da14ea80 Update web services documentation and samples
Closes gh-42887
2024-10-25 18:06:47 -07:00
Phillip Webb
2208c67f22 Add 'Global HTTP Client Configuration' reference docs section
Update documentation with information on how to configure the HTTP
client globally.

Closes gh-42888
2024-10-25 18:06:47 -07:00
Phillip Webb
e1b5935507 Allow customization of underlying ClientHttpRequestFactory components
Update `ClientHttpRequestFactoryBuilder` implementations for
`HttpComponents`, `Jdk`, `Jetty` and `Reactor` to allow customization
of the underlying components.

Closes gh-39035
2024-10-25 18:06:46 -07:00
Phillip Webb
97b20e9a98 Add additional tests for redirects with different HTTP methods
Closes gh-42879
2024-10-25 14:41:45 -07:00
Moritz Halbritter
85b1c55bb8 Polish 2024-10-25 13:40:21 +02:00
Phillip Webb
36a22fcd59 Unify HTTP client redirect behavior and provide configuration option
Update `ClientHttpRequestFactoryBuilder` implementations to ensure
that all libraries have consistent redirect follow behavior. Following
of redirects is enabled by default.

The `ClientHttpRequestFactorySettings` may be used to change if
redirects should be followed. The `spring.http.client.redirects`
property may also be used to update the default behavior.

Closes gh-42879
2024-10-25 02:45:36 -07:00
Phillip Webb
a92001130f Deprecate ClientHttpRequestFactories
Deprecate `ClientHttpRequestFactories` and refactor its internals to
delegate to the new `ClientHttpRequestFactoryBuilder` interface.

Closes gh-36266
2024-10-25 02:45:35 -07:00
Phillip Webb
3a8b2e4bc8 Add HttpClientAutoConfiguration and use it wherever possible
Add a new `HttpClientAutoConfiguration` class that provides
`ClientHttpRequestFactoryBuilder` and `ClientHttpRequestFactorySettings`
beans and new configuration properties.

The existing `RestTemplate`, `RestClient` and `WebServiceTemplate`
auto-configurations have been updated to make use of the new
HTTP client support.

Users may now set `spring.http.client` property to globally change
the `ClientHttpRequestFactory` used in their application.

Closes gh-36266
2024-10-25 02:45:35 -07:00
Phillip Webb
6356e904fc Update web services support to use ClientHttpRequestFactoryBuilder
Add a new `WebServiceMessageSenderFactory` factory interface to replace
`HttpWebServiceMessageSenderBuilder`. The factory provides a general
purpose way of creating `WebServiceMessageSender` instances, but most
typically will be `ClientHttpRequestMessageSender` created from a
`ClientHttpRequestFactoryBuilder`.

A new `httpMessageSenderFactory` method has been added to the
`WebServiceTemplateBuilder` class. This allows any sender to be
plugged into the template.

Closes gh-42886
2024-10-25 02:45:35 -07:00
Phillip Webb
022f3cb019 Add requestFactorySettings method to RestTemplateBuilder
Add a `requestFactorySettings` method to `RestTemplateBuilder` to make
it easier to apply an existing `ClientHttpRequestFactorySettings`
instance.

Closes gh-42885
2024-10-25 02:45:35 -07:00
Phillip Webb
367912707a Update RestTemplateBuilder to use ClientHttpRequestFactoryBuilder
Refactor the internals of `RestTemplateBuilder` so that the new
`ClientHttpRequestFactoryBuilder` is used to create
`ClientHttpRequestFactory` instance.

See gh-36266
2024-10-25 02:45:35 -07:00
Phillip Webb
78458afa17 Introduce ClientHttpRequestFactoryBuilder support
Add a new `ClientHttpRequestFactoryBuilder` interface to support the
creation of `ClientHttpRequestFactory` instances. The new code will
ultimately replace the existing `ClientHttpRequestFactories` class.

The `ClientHttpRequestFactoryBuilder` is a functional interface with
additional static factory methods for the various supported
`ClientHttpRequestFactory` types. Each type has it's own builder
which should allow us to support additional customization in the future.

Unlike `ClientHttpRequestFactories`, the builder aligns with Spring
Framework defaults and will detect the `JdkClientHttpRequestFactory`
in preference of `SimpleClientHttpRequestFactory`.

This commit also relocates `ClientHttpRequestFactorySettings` to bring
it into the new `http.client` package.

See gh-36266
2024-10-25 02:45:35 -07:00
Phillip Webb
0a4ac283d0 Rename RestTemplateBuilder 'set' methods
Rename `RestTemplateBuilder` methods for consistency:

* `setConnectTimeout` -> `connectTimeout`
* `setReadTimeout` -> `readTimeout`
* `setSslBundle` -> `sslBundle`

Closes gh-42884
2024-10-25 02:45:35 -07:00
Phillip Webb
8feba568da Polish 2024-10-25 02:45:35 -07:00
Moritz Halbritter
575dae74c5 Merge pull request #42874 from nosan
* pr/42874:
  Add a test to verify that ReflectionHint for Hazelcast ClientConfig is present

Closes gh-42874
2024-10-25 08:54:37 +02:00
Dmytro Nosan
5be0049ed9 Add a test to verify that ReflectionHint for Hazelcast ClientConfig is present
See gh-42874
2024-10-25 08:44:26 +02:00
Moritz Halbritter
6fce6ffde7 Merge branch '3.3.x'
Closes gh-42882
2024-10-25 08:43:20 +02:00
Moritz Halbritter
8556001b4e Merge branch '3.2.x' into 3.3.x
Closes gh-42881
2024-10-25 08:42:58 +02:00
Moritz Halbritter
4718485c7d Merge pull request #42848 from izeye
* pr/42848:
  Move default value descriptions to description field

Closes gh-42848
2024-10-25 08:35:41 +02:00
Johnny Lim
a1b4033d10 Move default value descriptions to description field
See gh-42848
2024-10-25 08:35:23 +02:00
Andy Wilkinson
72872e5644 Merge branch '3.3.x' 2024-10-24 14:36:47 +01:00
Andy Wilkinson
afd0b45f1f Next development version (v3.3.6-SNAPSHOT) 2024-10-24 14:36:30 +01:00
Moritz Halbritter
2a1c8923b3 Merge branch '3.3.x' 2024-10-24 12:53:50 +02:00
Moritz Halbritter
02f6eb48cf Merge branch '3.2.x' into 3.3.x 2024-10-24 12:53:41 +02:00
Moritz Halbritter
728deafff2 Next development version (v3.2.12-SNAPSHOT) 2024-10-24 12:53:28 +02:00
Moritz Halbritter
39cdcc6d38 Merge branch '3.3.x' 2024-10-24 12:52:23 +02:00
Moritz Halbritter
9ca6667127 Merge branch '3.2.x' into 3.3.x 2024-10-24 12:51:53 +02:00
Moritz Halbritter
9858b4b367 Fix release script 2024-10-24 12:45:52 +02:00
Andy Wilkinson
9501db4dc4 Upgrade to Spring Framework 6.2.0-RC3
Closes gh-42833
2024-10-24 10:43:08 +01:00
Andy Wilkinson
924c807182 Merge branch '3.3.x'
Closes gh-42869
2024-10-24 09:28:51 +01:00
Andy Wilkinson
2bf3e5ab20 Document that embedded Tomcat must be 10.1.25 or later
Closes gh-42849
2024-10-24 09:28:18 +01:00
Andy Wilkinson
9df9d89b69 Upgrade to Spring Integration 6.4.0-RC1
Closes gh-42563
2024-10-24 09:23:14 +01:00
Andy Wilkinson
8c06886409 Upgrade to Spring Batch 5.2.0-RC1
Closes gh-42560
2024-10-24 09:23:13 +01:00
Andy Wilkinson
4fa254d745 Upgrade to Byte Buddy 1.15.7
Closes gh-42867
2024-10-24 09:23:13 +01:00
Andy Wilkinson
c8eeba37c4 Merge branch '3.3.x' 2024-10-24 09:14:36 +01:00
Andy Wilkinson
13e75dce1b Upgrade to Spring Integration 6.3.5
Closes gh-42549
2024-10-24 09:13:50 +01:00
Moritz Halbritter
c2bb3586c8 Use spring-boot-3.4.x as build name
See gh-42866
2024-10-24 09:47:56 +02:00
Moritz Halbritter
17a399ea92 Merge branch '3.3.x' 2024-10-24 08:58:17 +02:00
Moritz Halbritter
131bbafb6d Merge branch '3.2.x' into 3.3.x 2024-10-24 08:58:10 +02:00
Moritz Halbritter
83a3212e98 Use github.ref_name when deploying snapshots
See gh-42808
2024-10-24 08:57:24 +02:00
Moritz Halbritter
465ad822d3 Merge branch '3.3.x'
Closes gh-42863
2024-10-24 08:39:55 +02:00
Moritz Halbritter
2d9138549c Merge branch '3.2.x' into 3.3.x
Closes gh-42862
2024-10-24 08:39:40 +02:00
Moritz Halbritter
76cfc57b35 Use steps.build-and-publish.outputs.version instead of github.ref_name
Closes gh-42808
2024-10-24 08:38:19 +02:00
Phillip Webb
005ea96307 Revert "Add spring-aop to work around Spring Framework mock detection issue"
This reverts commit 2a64cf6fb1.

Closes gh-42855
2024-10-23 12:36:36 -07:00
Andy Wilkinson
3b330ae09a Shut down management server once main server's shut down
Closes gh-41002
2024-10-23 12:08:03 -07:00
Phillip Webb
2a64cf6fb1 Add spring-aop to work around Spring Framework mock detection issue 2024-10-23 11:13:28 -07:00
Phillip Webb
0305d1e9d5 Adapt to upstream Spring Framework @MockitoBean changes 2024-10-23 11:11:55 -07:00
Phillip Webb
47fa83cafc Merge branch '3.3.x' 2024-10-23 10:14:59 -07:00
Phillip Webb
fc1ed0b340 Increase timeout in ZipkinWebClientSenderTests 2024-10-23 10:14:32 -07:00
Phillip Webb
d8ef2144e3 Merge branch '3.3.x' 2024-10-23 09:58:59 -07:00