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

Avoid use of injected httpHeaders and uriInfo when in client mode #2248

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

lmsurpre
Copy link
Member

This change is needed to allow fhir-provider to execute in other
environments such as from within a standalone RestEasy client.

I also converted the static 'isPretty' helper to a member function to
allow access to the instance-level RuntimeType.

I also added javadoc to help distinguish FHIRProvider from
FHIRJsonProvider.

Signed-off-by: Lee Surprenant lmsurpre@us.ibm.com

This change is needed to allow fhir-provider to execute in other
environments such as from within a standalone RestEasy client.

Also converted the static 'isPretty' helper to a member function to
allow access to the instance-level RuntimeType.

Also added javadoc to help distinguish FHIRProvider from
FHIRJsonProvider.

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Copy link
Contributor

@prb112 prb112 left a comment

Choose a reason for hiding this comment

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

LGTM - I had to read the isPretty method directly at https://github.com/IBM/FHIR/blob/d97ff4d16feafddd54dfc6025fdd49ead4a1b9a9/fhir-provider/src/main/java/com/ibm/fhir/provider/FHIRProvider.java#L140

Also, it makes sense given the use-case described.

Copy link
Collaborator

@JohnTimm JohnTimm left a comment

Choose a reason for hiding this comment

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

LGTM

@lmsurpre lmsurpre merged commit b2c6ea0 into main Apr 15, 2021
@lmsurpre lmsurpre deleted the main-lee branch April 15, 2021 13:05
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.

3 participants