Skip to content

Allow overriding getScheme on DefaultServiceInstance. #1168

New issue

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

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

Already on GitHub? # to your account

Merged
merged 3 commits into from
Nov 8, 2022

Conversation

OlgaMaciaszek
Copy link
Collaborator

Fixes gh-823.

String scheme = this.uri.getScheme();
if ("https".equals(scheme)) {
scheme = this.uri.getScheme();
if (Arrays.asList("https", "wss").contains(scheme)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any concern on case?
I would make the list a class variable instead of creating it everytime setUri is called.

@OlgaMaciaszek OlgaMaciaszek merged commit 5015b13 into main Nov 8, 2022
OlgaMaciaszek added a commit that referenced this pull request Nov 8, 2022
Copy link
Contributor

@ryanjbaxter ryanjbaxter left a comment

Choose a reason for hiding this comment

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

LGTM

@OlgaMaciaszek OlgaMaciaszek deleted the allow-overriding-getScheme branch November 13, 2023 18:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SimpleServcieInstance should override getScheme()
2 participants