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

refactor: get rid of DspHttpDispatcherDelegate #3771

Merged
merged 1 commit into from Jan 12, 2024

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Jan 11, 2024

What this PR changes/adds

Get rid of DspHttpDispatcherDelegate and subclasses, preferring composition over inheritance.

Why it does that

cleanup

Further notes

  • deprecated two EdcHttpClient.executeAsync methods as they are not really needed, in fact have the mapping function passed to the method makes really hard to test, plus having an overarching response closure is not the best approach because if the body is null that will end up with an exception. (is the ResponseBody that needs to be closed, please refer to the way it was handled in the DspHttpRemoteMessageDispatcherImpl.handleResponse method.

Linked Issue(s)

Closes #3344

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt added the refactoring Cleaning up code and dependencies label Jan 11, 2024
Copy link
Contributor

@jimmarino jimmarino left a comment

Choose a reason for hiding this comment

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

two minor formatting comments

@ndr-brt ndr-brt merged commit e87b569 into eclipse-edc:main Jan 12, 2024
17 checks passed
@ndr-brt ndr-brt deleted the 3344-refactor-dsp-delegates branch January 12, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get rid of DspHttpDispatcherDelegate
2 participants