Class DefaultRestClient
java.lang.Object
org.ehrbase.openehr.sdk.client.openehrclient.defaultrestclient.DefaultRestClient
- All Implemented Interfaces:
OpenEhrClient
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRestClient(OpenEhrClientConfig config) DefaultRestClient(OpenEhrClientConfig config, TemplateProvider templateProvider) DefaultRestClient(OpenEhrClientConfig config, TemplateProvider templateProvider, org.apache.http.client.HttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptionGet theAdminEhrEndpointGet theAqlEndpointcompositionEndpoint(UUID ehrId) Get theCompositionEndpointfor ehr with IdehrIdcontributionEndpoint(UUID ehrId) Get theContributionEndpointfor ehr with IdehrIddirectoryCrudEndpoint(UUID ehrId) Get theEhrEndpointprotected OpenEhrClientConfigprotected DefaultValuesProviderorg.apache.http.client.fluent.Executorprotected <T> Optional<T>protected <T> Optional<T>protected com.nedap.archie.rm.support.identification.ObjectVersionIdprotected com.nedap.archie.rm.support.identification.ObjectVersionIdprotected com.nedap.archie.rm.support.identification.ObjectVersionIdhttpPut(URI uri, com.nedap.archie.rm.archetyped.Locatable body, com.nedap.archie.rm.support.identification.ObjectVersionId versionUid) protected com.nedap.archie.rm.support.identification.ObjectVersionIdhttpPut(URI uri, com.nedap.archie.rm.archetyped.Locatable body, com.nedap.archie.rm.support.identification.ObjectVersionId versionUid, Map<String, String> headers) protected org.apache.http.HttpResponseinternalDelete(URI uri, Map<String, String> headers) used with the admin endpoint for nowprotected org.apache.http.HttpResponseprotected org.apache.http.HttpResponseinternalPost(URI uri, Map<String, String> headers, String bodyString, org.apache.http.entity.ContentType contentType, String accept) protected org.apache.http.HttpResponseinternalPut(URI uri, Map<String, String> headers, String bodyString, org.apache.http.entity.ContentType contentType, String accept) Get theTemplateEndpointversionedCompositionEndpoint(UUID ehrId) Get theVersionedCompositionEndpoint.
-
Constructor Details
-
DefaultRestClient
-
DefaultRestClient
-
DefaultRestClient
public DefaultRestClient(OpenEhrClientConfig config, TemplateProvider templateProvider, org.apache.http.client.HttpClient httpClient)
-
-
Method Details
-
httpPost
protected com.nedap.archie.rm.support.identification.ObjectVersionId httpPost(URI uri, com.nedap.archie.rm.RMObject body) -
httpPost
-
internalPost
-
internalPut
-
httpPut
protected com.nedap.archie.rm.support.identification.ObjectVersionId httpPut(URI uri, com.nedap.archie.rm.archetyped.Locatable body, com.nedap.archie.rm.support.identification.ObjectVersionId versionUid) -
httpPut
-
httpGet
-
httpGet
-
internalGet
-
internalDelete
used with the admin endpoint for now- Parameters:
uri-headers-- Returns:
-
getConfig
-
getDefaultValuesProvider
-
getExecutor
public org.apache.http.client.fluent.Executor getExecutor() -
ehrEndpoint
Description copied from interface:OpenEhrClientGet theEhrEndpoint- Specified by:
ehrEndpointin interfaceOpenEhrClient- Returns:
-
compositionEndpoint
Description copied from interface:OpenEhrClientGet theCompositionEndpointfor ehr with IdehrId- Specified by:
compositionEndpointin interfaceOpenEhrClient- Parameters:
ehrId- ehrId of ehr for which to revive compositions- Returns:
-
contributionEndpoint
Description copied from interface:OpenEhrClientGet theContributionEndpointfor ehr with IdehrId- Specified by:
contributionEndpointin interfaceOpenEhrClient- Parameters:
ehrId- ehrId of ehr for which to revive contributions- Returns:
-
directoryCrudEndpoint
- Specified by:
directoryCrudEndpointin interfaceOpenEhrClient
-
folder
- Specified by:
folderin interfaceOpenEhrClient
-
templateEndpoint
Description copied from interface:OpenEhrClientGet theTemplateEndpoint- Specified by:
templateEndpointin interfaceOpenEhrClient- Returns:
-
aqlEndpoint
Description copied from interface:OpenEhrClientGet theAqlEndpoint- Specified by:
aqlEndpointin interfaceOpenEhrClient- Returns:
-
adminEhrEndpoint
Description copied from interface:OpenEhrClientGet theAdminEhrEndpoint- Specified by:
adminEhrEndpointin interfaceOpenEhrClient- Returns:
-
adminTemplateEndpoint
- Specified by:
adminTemplateEndpointin interfaceOpenEhrClient
-
versionedCompositionEndpoint
Description copied from interface:OpenEhrClientGet theVersionedCompositionEndpoint.- Specified by:
versionedCompositionEndpointin interfaceOpenEhrClient- Parameters:
ehrId- the EHR identifier- Returns:
- the endpoint
-