Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Migrate to the new oslc4j-client #32

Merged
merged 5 commits into from
Apr 23, 2019
Merged

Migrate to the new oslc4j-client #32

merged 5 commits into from
Apr 23, 2019

Conversation

berezovskyi
Copy link
Contributor

Closes #28

Relies on the client from eclipse-lyo/lyo.client#37

Signed-off-by: Andrew Berezovskyi <[email protected]>
Copy link

@jamsden jamsden left a comment

Choose a reason for hiding this comment

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

Do you need TrsBasicAuthOslcClient subclass of OslcClient? And methods like fetchResourceUsingBaseAuth() don't seem right. Rather the TRS server should use some configuration information to know what authentication to use, and create a ClientBuilder that it passes to OslcClient configured as needed to access the resources using OslcClient directly.

@berezovskyi
Copy link
Contributor Author

Yes, it felt wierd when I was fixing the existing code. I will refactor it as per your suggestions, thanks.

Signed-off-by: Andrew Berezovskyi <[email protected]>
Refactored a few things along the way

Signed-off-by: Andrew Berezovskyi <[email protected]>
# Conflicts:
#	pom.xml
#	src/main/java/org/eclipse/lyo/oslc4j/trs/client/handlers/TRSTaskHandler.java
#	src/main/java/org/eclipse/lyo/oslc4j/trs/client/util/TrsBasicAuthOslcClient.java
@berezovskyi
Copy link
Contributor Author

@jamsden fixed the subclass issues as you suggested.

@jamsden @jadelkhoury please review

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of the old Lyo Client drags the JSR311 dep
3 participants