public abstract class FhirComponent<AuditDatasetType extends FhirAuditDataset> extends org.apache.camel.impl.UriEndpointComponent implements AuditableComponent<AuditDatasetType>, InterceptableComponent
Constructor and Description |
---|
FhirComponent(org.apache.camel.CamelContext context,
FhirInteractionId fhirInteractionId) |
FhirComponent(FhirInteractionId fhirInteractionId) |
Modifier and Type | Method and Description |
---|---|
void |
connect(FhirConsumer<AuditDatasetType> consumer,
AbstractPlainProvider resourceProvider)
Connects the URL specified on the endpoint to the specified processor.
|
protected FhirEndpointConfiguration<AuditDatasetType> |
createConfig(String remaining,
Map<String,Object> parameters) |
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
void |
disconnect(FhirConsumer<AuditDatasetType> consumer,
AbstractPlainProvider resourceProvider)
Disconnects the URL specified on the endpoint from the specified processor.
|
protected abstract FhirEndpoint<?,?> |
doCreateEndpoint(String uri,
FhirEndpointConfiguration<AuditDatasetType> config)
Returns a new endpoint instance
|
List<Interceptor<?>> |
getAdditionalConsumerInterceptors()
Returns a list of component-specific (i.e.
|
List<Interceptor<?>> |
getAdditionalProducerInterceptors()
Returns a list of component-specific (i.e.
|
AuditStrategy<AuditDatasetType> |
getClientAuditStrategy()
Returns client-side audit strategy instance.
|
FhirTransactionConfiguration<AuditDatasetType> |
getFhirTransactionConfiguration() |
FhirInteractionId |
getInteractionId() |
AuditStrategy<AuditDatasetType> |
getServerAuditStrategy()
Returns server-side audit strategy instance.
|
ca.uhn.fhir.context.FhirContext |
initializeFhirContext() |
void |
setFhirInteractionId(FhirInteractionId fhirInteractionId)
Sets the FHIR interactionID.
|
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isResolvePropertyPlaceholders, preProcessUri, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, setResolvePropertyPlaceholders, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public FhirComponent(FhirInteractionId fhirInteractionId)
public FhirComponent(org.apache.camel.CamelContext context, FhirInteractionId fhirInteractionId)
public void connect(FhirConsumer<AuditDatasetType> consumer, AbstractPlainProvider resourceProvider) throws Exception
consumer
- the consumerresourceProvider
- the resource providerException
- can be thrownpublic void disconnect(FhirConsumer<AuditDatasetType> consumer, AbstractPlainProvider resourceProvider) throws Exception
consumer
- the consumerException
- can be thrownpublic ca.uhn.fhir.context.FhirContext initializeFhirContext()
protected FhirEndpointConfiguration<AuditDatasetType> createConfig(String remaining, Map<String,Object> parameters) throws Exception
Exception
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.impl.DefaultComponent
Exception
public List<Interceptor<?>> getAdditionalConsumerInterceptors()
InterceptableComponent
null
.
getAdditionalConsumerInterceptors
in interface InterceptableComponent
public List<Interceptor<?>> getAdditionalProducerInterceptors()
InterceptableComponent
null
.
getAdditionalProducerInterceptors
in interface InterceptableComponent
protected abstract FhirEndpoint<?,?> doCreateEndpoint(String uri, FhirEndpointConfiguration<AuditDatasetType> config)
uri
- the endpoint URIconfig
- FhirEndpointConfigurationpublic FhirTransactionConfiguration<AuditDatasetType> getFhirTransactionConfiguration()
public AuditStrategy<AuditDatasetType> getServerAuditStrategy()
AuditableComponent
getServerAuditStrategy
in interface AuditableComponent<AuditDatasetType extends FhirAuditDataset>
public AuditStrategy<AuditDatasetType> getClientAuditStrategy()
AuditableComponent
getClientAuditStrategy
in interface AuditableComponent<AuditDatasetType extends FhirAuditDataset>
public FhirInteractionId getInteractionId()
public void setFhirInteractionId(FhirInteractionId fhirInteractionId)
fhirInteractionId
- Copyright © 2018 Open eHealth Foundation. All rights reserved.