Class MllpTransactionEndpoint<AuditDatasetType extends MllpAuditDataset>
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultEndpoint
-
- org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpEndpoint<MllpTransactionEndpointConfiguration,AuditDatasetType,MllpTransactionComponent<AuditDatasetType>>
-
- org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpTransactionEndpoint<AuditDatasetType>
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Endpoint,org.apache.camel.IsSingleton,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasId,org.apache.camel.StatefulService,org.apache.camel.SuspendableService,AuditableEndpoint<AuditDatasetType>,org.openehealth.ipf.platform.camel.ihe.core.InterceptableEndpoint<MllpTransactionEndpointConfiguration,MllpTransactionComponent<AuditDatasetType>>,Hl7v2ConfigurationHolder<AuditDatasetType>,HL7v2Endpoint<AuditDatasetType>
public class MllpTransactionEndpoint<AuditDatasetType extends MllpAuditDataset> extends MllpEndpoint<MllpTransactionEndpointConfiguration,AuditDatasetType,MllpTransactionComponent<AuditDatasetType>> implements AuditableEndpoint<AuditDatasetType>
Camel endpoint for MLLP-based eHealth transactions (like IHE PIX, PDQ, XAD-PID, etc.).- Author:
- Dmytro Rud
-
-
Constructor Summary
Constructors Constructor Description MllpTransactionEndpoint(MllpTransactionComponent<AuditDatasetType> mllpComponent, org.apache.camel.component.mina.MinaEndpoint wrappedEndpoint, MllpTransactionEndpointConfiguration config)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.openehealth.ipf.platform.camel.ihe.core.Interceptor>createInitialConsumerInterceptorChain()List<org.openehealth.ipf.platform.camel.ihe.core.Interceptor>createInitialProducerInterceptorChain()org.openehealth.ipf.commons.audit.AuditContextgetAuditContext()org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy<AuditDatasetType>getClientAuditStrategy()intgetInteractiveContinuationDefaultThreshold()Returns default threshold for interactive continuation (relevant on consumer side only).InteractiveContinuationStoragegetInteractiveContinuationStorage()Returns the interactive continuation storage bean.StringgetInteractiveContinuationStorageType()org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy<AuditDatasetType>getServerAuditStrategy()UnsolicitedFragmentationStoragegetUnsolicitedFragmentationStorage()Returns the unsolicited fragmentation storage bean.StringgetUnsolicitedFragmentationStorageType()intgetUnsolicitedFragmentationThreshold()Returns threshold for unsolicited message fragmentation (relevant on producer side only).booleanisAudit()Returns true when ATNA auditing should be performed.booleanisAutoCancel()Returns true, when the producer should automatically send a cancel message after it has collected all interactive continuation pieces.booleanisSupportInteractiveContinuation()Returnstrueif this endpoint supports interactive continuation.booleanisSupportUnsolicitedFragmentation()Returnstrueif this endpoint supports unsolicited message fragmentation.-
Methods inherited from class org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpEndpoint
configureProperties, createExchange, createExchange, createPollingConsumer, doCreateConsumer, doCreateProducer, equals, getCamelContext, getCharsetName, getClientAuthType, getClientAuthTypeClass, getComponent, getComponentType, getConfig, getConfiguration, getCustomInterceptorFactories, getCustomInterceptorFactoryList, getDispatcher, getEndpointKey, getEndpointUri, getExchangePattern, getHl7v2TransactionConfiguration, getHost, getInteractionId, getInterceptableComponent, getInterceptableConfiguration, getIoFilters, getMllpComponent, getNakFactory, getPort, getSegmentFragmentationThreshold, getSslCiphers, getSslContext, getSslProtocols, getTimeout, getWrappedEndpoint, hashCode, isLenientProperties, isSingleton, isSslSecure, isSupportSegmentFragmentation, setCamelContext, setEndpointUriIfNotSpecified, setExchangePattern, toString
-
Methods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, doInit, doStart, doStop, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, setAutowiredEnabled, setBridgeErrorHandler, setComponent, setEndpointUri, setExceptionHandler, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.camel.Endpoint
configureExchange, configureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, isLenientProperties, isSingletonProducer, setCamelContext
-
Methods inherited from interface org.openehealth.ipf.platform.camel.ihe.core.InterceptableEndpoint
createConsumer, createProducer, getCustomInterceptors
-
-
-
-
Constructor Detail
-
MllpTransactionEndpoint
public MllpTransactionEndpoint(MllpTransactionComponent<AuditDatasetType> mllpComponent, org.apache.camel.component.mina.MinaEndpoint wrappedEndpoint, MllpTransactionEndpointConfiguration config)
Constructor.- Parameters:
mllpComponent- MLLP Component instance which is creating this endpoint.wrappedEndpoint- The original camel-mina endpoint instance.config- Configuration parameters.
-
-
Method Detail
-
createInitialConsumerInterceptorChain
public List<org.openehealth.ipf.platform.camel.ihe.core.Interceptor> createInitialConsumerInterceptorChain()
- Specified by:
createInitialConsumerInterceptorChainin interfaceorg.openehealth.ipf.platform.camel.ihe.core.InterceptableEndpoint<MllpTransactionEndpointConfiguration,MllpTransactionComponent<AuditDatasetType extends MllpAuditDataset>>
-
createInitialProducerInterceptorChain
public List<org.openehealth.ipf.platform.camel.ihe.core.Interceptor> createInitialProducerInterceptorChain()
- Specified by:
createInitialProducerInterceptorChainin interfaceorg.openehealth.ipf.platform.camel.ihe.core.InterceptableEndpoint<MllpTransactionEndpointConfiguration,MllpTransactionComponent<AuditDatasetType extends MllpAuditDataset>>
-
getAuditContext
public org.openehealth.ipf.commons.audit.AuditContext getAuditContext()
- Specified by:
getAuditContextin interfaceAuditableEndpoint<AuditDatasetType extends MllpAuditDataset>
-
isAudit
@ManagedAttribute(description="Audit Enabled") public boolean isAudit()
Returns true when ATNA auditing should be performed.- Specified by:
isAuditin interfaceAuditableEndpoint<AuditDatasetType extends MllpAuditDataset>
-
getClientAuditStrategy
public org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy<AuditDatasetType> getClientAuditStrategy()
- Specified by:
getClientAuditStrategyin interfaceAuditableEndpoint<AuditDatasetType extends MllpAuditDataset>
-
getServerAuditStrategy
public org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy<AuditDatasetType> getServerAuditStrategy()
- Specified by:
getServerAuditStrategyin interfaceAuditableEndpoint<AuditDatasetType extends MllpAuditDataset>
-
isSupportUnsolicitedFragmentation
@ManagedAttribute(description="Support Unsolicited Fragmentation Enabled") public boolean isSupportUnsolicitedFragmentation()
Returnstrueif this endpoint supports unsolicited message fragmentation.
-
getUnsolicitedFragmentationThreshold
@ManagedAttribute(description="Unsolicited Fragmentation Threshold") public int getUnsolicitedFragmentationThreshold()
Returns threshold for unsolicited message fragmentation (relevant on producer side only).
-
getUnsolicitedFragmentationStorage
public UnsolicitedFragmentationStorage getUnsolicitedFragmentationStorage()
Returns the unsolicited fragmentation storage bean.
-
getUnsolicitedFragmentationStorageType
@ManagedAttribute(description="Unsolicited Fragmentation Storage Cache Type") public String getUnsolicitedFragmentationStorageType()
-
isSupportInteractiveContinuation
@ManagedAttribute(description="Support Interactive Continuation Enabled") public boolean isSupportInteractiveContinuation()
Returnstrueif this endpoint supports interactive continuation.
-
getInteractiveContinuationDefaultThreshold
@ManagedAttribute(description="Interactive Continuation Default Threshold") public int getInteractiveContinuationDefaultThreshold()
Returns default threshold for interactive continuation (relevant on consumer side only).This value will be used when interactive continuation is generally supported by this endpoint and is particularly applicable for the current response message, and the corresponding request message does not set the records count threshold explicitly (RCP-2-1==integer, RCP-2-2=='RD').
-
getInteractiveContinuationStorage
public InteractiveContinuationStorage getInteractiveContinuationStorage()
Returns the interactive continuation storage bean.
-
isAutoCancel
@ManagedAttribute(description="Auto Cancel Enabled") public boolean isAutoCancel()
Returns true, when the producer should automatically send a cancel message after it has collected all interactive continuation pieces.
-
getInteractiveContinuationStorageType
@ManagedAttribute(description="Interactive Continuation Storage Cache Type") public String getInteractiveContinuationStorageType()
-
-