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

[MRESOLVER-467][MRESOLVER-468] Pull out shared HTTP stuff #410

Merged
merged 6 commits into from
Jan 24, 2024

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Jan 22, 2024

Currently we have 3 HTTP transports and each have quite some overlap. Pull these out. Included checksums in all three, but Jetty and JDK transports also redefine same constants as well.

Another issue touched here is "stabilizing" (and exposing intermediate components) on RepositorySystem supplier.


https://issues.apache.org/jira/browse/MRESOLVER-467
https://issues.apache.org/jira/browse/MRESOLVER-468

Currently we have 3 HTTP transports and each have
quite some overlap. Pull these out, introduce
new "shared HTTP" module for those.

---

https://issues.apache.org/jira/browse/MRESOLVER-467
@cstamas cstamas self-assigned this Jan 22, 2024
"first" as this is what Wagon did and now all HTTP transport does.
@cstamas cstamas requested review from michael-o and gnodet January 22, 2024 16:24
@Singleton
@Named
public final class DefaultChecksumExtractor implements ChecksumExtractor {
private final Map<String, Strategy> strategies;
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need this empty interface?

Copy link
Member Author

Choose a reason for hiding this comment

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

To distinguish component types, otherwise on inject it would be a loop -> failure (entry point would like to inject itself), hence using subtype. Also, later on, the Strategy interface MAY become different, while currently it does not.

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, separated them out.

@cstamas cstamas changed the title [MRESOLVER-467] Pull out shared HTTP stuff [MRESOLVER-467][MRESOLVER-468] Pull out shared HTTP stuff Jan 23, 2024
@cstamas cstamas merged commit ef40602 into apache:master Jan 24, 2024
4 checks passed
@cstamas cstamas deleted the pull-out-shared branch January 24, 2024 08:40
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.

2 participants