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

Refine naming consistency for HttpRequestFactories and update RestOperations interface #33411

Closed

Conversation

Torres-09
Copy link
Contributor

@Torres-09 Torres-09 commented Aug 20, 2024

This PR addresses issue #33382 by refining the naming consistency within the Spring Framework.

Class Renaming
ReactorNettyClientRequestFactory -> ReactorClientHttpRequestFactory
ReactorClientHttpConnector -> ReactorNettyClientHttpConnector
HttpComponentsClientHttpRequestFactory -> HttpComponentsClientRequestFactory

RestOperations Interface Update
Updated the RestOperations interface to reflect the new class names, specifically changing references from HttpComponentsClientHttpRequestFactory to HttpComponentsClientRequestFactory.

This update affects 32 files.

Testing
All relevant tests were executed locally using ./gradlew test, and all tests passed successfully. No regressions were introduced by the changes in this PR.

Issue: #33382

This commit renames three classes to improve naming consistency within the Spring Framework:
- `ReactorNettyClientRequestFactory` -> `ReactorClientHttpRequestFactory`
- `ReactorClientHttpConnector` -> `ReactorNettyClientHttpConnector`
- `HttpComponentsClientHttpRequestFactory` -> `HttpComponentsClientRequestFactory`

These changes align the class names with others in the project, reducing redundancy and improving clarity. This update affects 31 files.

Issue: spring-projects#33382
- Updated references from `HttpComponentsClientHttpRequestFactory` to `HttpComponentsClientRequestFactory`.

Issue: spring-projects#33382
@pivotal-cla
Copy link

@Torres-09 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@Torres-09 Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Aug 20, 2024
@rstoyanchev rstoyanchev requested a review from jhoeller September 6, 2024 15:37
@rstoyanchev rstoyanchev added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Sep 6, 2024
@rstoyanchev rstoyanchev removed the type: enhancement A general enhancement label Sep 10, 2024
@jhoeller
Copy link
Contributor

I went with the simplest possible renaming: just ReactorNettyClientRequestFactory to ReactorClientHttpRequestFactory, leaving all other class names as they are. This achieves local consistency within the http.client` package which is the most important part.

@jhoeller jhoeller closed this Sep 11, 2024
@jhoeller jhoeller added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Sep 11, 2024
@Torres-09 Torres-09 deleted the rename-classes-for-consistency branch September 12, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants