Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-3677: Doc for URL conn customization in FeedCA #3678

Merged
merged 2 commits into from
Nov 16, 2021

Conversation

artembilan
Copy link
Member

Fixes #3677

If there is need to have a URLConnection customized, the UrlResource
has to be used instead of plain URL injection into the FeedEntryMessageSource

Fixes spring-projects#3677

If there is need to have a `URLConnection` customized, the `UrlResource`
has to be used instead of plain `URL` injection into the `FeedEntryMessageSource`
@@ -127,3 +127,5 @@ public class FeedJavaApplication {
}
----
====

NOTE: If the connection to the feed needs some customization, e.g. connection and read timeouts, the `org.springframework.core.io.UrlResource` extension with its `customizeConnection(HttpURLConnection)` override has to be used instead of plain `URL` injection into the `FeedEntryMessageSource`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we could include an example?

@garyrussell garyrussell merged commit de0f91b into spring-projects:main Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UrlConnection timeout required for FeedEntryMessageSource
2 participants