Commit Graph

51490 Commits

Author SHA1 Message Date
Stéphane Nicoll d4010d3be0 Polish "Prevent auth header to be included in Docker API call"
See gh-42910
2024-10-29 13:24:09 +09:00
YiXuan Ding 351018ea65 Prevent auth header to be included in Docker API call
See gh-42910
2024-10-29 13:16:08 +09:00
Phillip Webb 24202a0a78 Update copyright year of changed files 2024-10-25 18:21:53 -07:00
Phillip Webb 387b14183a Merge branch '3.3.x'
Closes gh-42896
2024-10-25 18:21:19 -07:00
Phillip Webb 6d2a75f27d Merge branch '3.2.x' into 3.3.x
Closes gh-42895
2024-10-25 18:21:14 -07:00
Phillip Webb 9d6cfba278 Merge pull request #42876 from quaff
* pr/42876:
  Remove unnecessary call of superclass constructor

Closes gh-42876
2024-10-25 18:21:02 -07:00
Yanming Zhou 4952fc7417 Remove unnecessary call of superclass constructor
See gh-42876
2024-10-25 18:20:44 -07:00
Phillip Webb 28ad767360 Merge branch '3.3.x'
Closes gh-42894
2024-10-25 18:18:38 -07:00
Phillip Webb a7f11eb712 Merge branch '3.2.x' into 3.3.x
Closes gh-42893
2024-10-25 18:18:27 -07:00
Phillip Webb dc32cb87f4 Merge pull request #42868 from 1328032567
* pr/42868:
  Update HttpWebServiceMessageSenderBuilder javadoc

Closes gh-42868
2024-10-25 18:18:17 -07:00
YiXuan Ding 1730bf6f94 Update HttpWebServiceMessageSenderBuilder javadoc
Update the return javadoc from "@return a new builder instance" to
"@return the current builder instance".

See gh-42868
2024-10-25 18:18:05 -07:00
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