Package ca.uhn.fhir.jpa.graphql
Class GraphQLProvider
java.lang.Object
ca.uhn.fhir.jpa.graphql.GraphQLProvider
-
Constructor Summary
ConstructorsConstructorDescriptionGraphQLProvider(ca.uhn.fhir.context.FhirContext theFhirContext, ca.uhn.fhir.context.support.IValidationSupport theValidationSupport, org.hl7.fhir.utilities.graphql.IGraphQLStorageServices theStorageServices)Constructor which uses the given worker contextGraphQLProvider(org.hl7.fhir.utilities.graphql.IGraphQLStorageServices theStorageServices)Constructor which uses a default context and validation support object -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(ca.uhn.fhir.rest.server.RestfulServer theServer)processGraphQlGetRequest(ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IIdType theId, String theQueryUrl)processGraphQlPostRequest(ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IIdType theId, String theQueryBody)processGraphQLRequest(ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IIdType theId, String theQuery)
-
Constructor Details
-
GraphQLProvider
Constructor which uses a default context and validation support object- Parameters:
theStorageServices- The storage services (this object will be used to retrieve various resources as required by the GraphQL engine)
-
GraphQLProvider
public GraphQLProvider(@Nonnull ca.uhn.fhir.context.FhirContext theFhirContext, @Nullable ca.uhn.fhir.context.support.IValidationSupport theValidationSupport, @Nonnull org.hl7.fhir.utilities.graphql.IGraphQLStorageServices theStorageServices)Constructor which uses the given worker context- Parameters:
theFhirContext- The HAPI FHIR Context objecttheValidationSupport- The HAPI Validation Support object, or nulltheStorageServices- The storage services (this object will be used to retrieve various resources as required by the GraphQL engine)
-
-
Method Details
-
processGraphQlGetRequest
public String processGraphQlGetRequest(ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IIdType theId, String theQueryUrl) -
processGraphQlPostRequest
public String processGraphQlPostRequest(ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IIdType theId, String theQueryBody) -
processGraphQLRequest
public String processGraphQLRequest(ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IIdType theId, String theQuery) -
initialize
-