Class FhirEndpointConfiguration<AuditDatasetType extends FhirAuditDataset>
java.lang.Object
org.openehealth.ipf.platform.camel.ihe.core.InterceptableEndpointConfiguration
org.openehealth.ipf.platform.camel.ihe.atna.AuditableEndpointConfiguration
org.openehealth.ipf.platform.camel.ihe.fhir.core.FhirEndpointConfiguration<AuditDatasetType>
@UriParams
public class FhirEndpointConfiguration<AuditDatasetType extends FhirAuditDataset>
extends AuditableEndpointConfiguration
Configuration of a FHIR endpoint instance
- Since:
- 3.1
- Author:
- Christian Ohr
-
Constructor Summary
ModifierConstructorDescriptionprotected
FhirEndpointConfiguration
(FhirComponent<AuditDatasetType> component, String path, Map<String, Object> parameters) -
Method Summary
Modifier and TypeMethodDescription<T> List<T>
getAndRemoveOrResolveReferenceParameters
(FhirComponent<AuditDatasetType> component, Map<String, Object> parameters, String key, Class<T> type) <T extends IClientExecutable<?,
?>>
ClientRequestFactory<T>getPath()
List<? extends FhirProvider>
boolean
Only considered iflazyLoadBundles
is true.boolean
If this is true, all paging requests are routed into the route (seeLazyBundleProvider
fo details.boolean
isSort()
If this is true, sorting is executed in the BundleProvider if _sort parameters are provided.void
setConnectRequestTimeout
(int connectTimeout) void
setConnectTimeout
(int connectTimeout) void
setDisableServerValidation
(boolean disableServerValidation) By default, the client will query the server before the very first operation to download the server's conformance/metadata statement and verify that the server is appropriate for the given client.void
setPoolSize
(int poolSize) void
setTimeout
(int timeout) Methods inherited from class org.openehealth.ipf.platform.camel.ihe.atna.AuditableEndpointConfiguration
getAuditContext, isAudit
Methods inherited from class org.openehealth.ipf.platform.camel.ihe.core.InterceptableEndpointConfiguration
getCustomInterceptorFactories
-
Constructor Details
-
FhirEndpointConfiguration
protected FhirEndpointConfiguration(FhirComponent<AuditDatasetType> component, String path, Map<String, Object> parameters) throws Exception- Throws:
Exception
-
-
Method Details
-
getAndRemoveOrResolveReferenceParameters
public <T> List<T> getAndRemoveOrResolveReferenceParameters(FhirComponent<AuditDatasetType> component, Map<String, Object> parameters, String key, Class<T> type) -
getRestfulClientFactory
-
getClientRequestFactory
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout) -
setConnectRequestTimeout
public void setConnectRequestTimeout(int connectTimeout) -
setTimeout
public void setTimeout(int timeout) -
setPoolSize
public void setPoolSize(int poolSize) -
setDisableServerValidation
public void setDisableServerValidation(boolean disableServerValidation) By default, the client will query the server before the very first operation to download the server's conformance/metadata statement and verify that the server is appropriate for the given client. This check is only done once per server endpoint for a given FhirContext and is useful to prevent bugs or unexpected behaviour when talking to servers.It may introduce unneccesary overhead however in circumstances where the client and server are known to be compatible. Setting this to true disables this check.
-
getPath
-
getContext
-
getServletName
-
getResourceProvider
-
getHapiClientInterceptorFactories
-
getHapiServerInterceptorFactories
-
isLazyLoadBundles
public boolean isLazyLoadBundles()If this is true, all paging requests are routed into the route (seeLazyBundleProvider
fo details. Otherwise, all results are fetched once and cached in order to serve subsequent paging requests. -
isSort
public boolean isSort()If this is true, sorting is executed in the BundleProvider if _sort parameters are provided. The sorting logic is expected to be implemented inFhirSearchParameters
implementations. If this is false, the Camel route is expected to return sorted results if the query has requested this. -
getSecurityInformation
-
getConsumerSelector
-
isCacheBundles
public boolean isCacheBundles()Only considered iflazyLoadBundles
is true. The (partial) results of paging requests are cached so that subsequent requests only fetch resources that have not yet been requested.
-