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,CamelContextAware,ComponentAware,Endpoint,IsSingleton,Service,ShutdownableService,HasCamelContext,HasId,StatefulService,SuspendableService,AuditableEndpoint<AuditDatasetType>,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
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsConstructorDescriptionMllpTransactionEndpoint(MllpTransactionComponent<AuditDatasetType> mllpComponent, org.apache.camel.component.netty.NettyEndpoint wrappedEndpoint, MllpTransactionEndpointConfiguration config) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns client-side audit strategy instance.intReturns default threshold for interactive continuation (relevant on consumer side only).Returns the interactive continuation storage bean.Returns server-side audit strategy instance.Returns the unsolicited fragmentation storage bean.intReturns threshold for unsolicited message fragmentation (relevant on producer side only).booleanisAudit()Returns true when ATNA auditing should be performed.booleanReturns true, when the producer should automatically send a cancel message after it has collected all interactive continuation pieces.booleanReturnstrueif this endpoint supports interactive continuation.booleanReturnstrueif 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, getComponent, getComponentType, getConfig, getConfiguration, getCustomInterceptorFactories, getCustomInterceptorFactoryList, getDispatcher, getEndpointKey, getEndpointUri, getExchangePattern, getHl7v2TransactionConfiguration, getHost, getInteractionId, getInterceptableComponent, getInterceptableConfiguration, getMllpComponent, getNakFactory, getPort, getRequestTimeout, getSegmentFragmentationThreshold, getTimeout, getWrappedEndpoint, hashCode, isLenientProperties, isSingleton, isSupportSegmentFragmentation, setCamelContext, setEndpointUriIfNotSpecified, setExchangePattern, toStringMethods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, doInit, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, setAutowiredEnabled, setBridgeErrorHandler, setComponent, setEndpointUri, setExceptionHandler, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setPropertiesMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.ComponentAware
getComponent, getComponent, setComponentMethods inherited from interface org.apache.camel.Endpoint
configureExchange, configureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isRemote, isSingletonProducer, setCamelContextMethods inherited from interface org.openehealth.ipf.platform.camel.ihe.core.InterceptableEndpoint
createConsumer, createProducer, getCustomInterceptorsMethods inherited from interface org.apache.camel.IsSingleton
isSingletonMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
MllpTransactionEndpoint
public MllpTransactionEndpoint(MllpTransactionComponent<AuditDatasetType> mllpComponent, org.apache.camel.component.netty.NettyEndpoint wrappedEndpoint, MllpTransactionEndpointConfiguration config) Constructor.- Parameters:
mllpComponent- MLLP Component instance which is creating this endpoint.wrappedEndpoint- The original camel-netty endpoint instance.config- Configuration parameters.
-
-
Method Details
-
createInitialConsumerInterceptorChain
- Specified by:
createInitialConsumerInterceptorChainin interfaceInterceptableEndpoint<MllpTransactionEndpointConfiguration,MllpTransactionComponent<AuditDatasetType extends MllpAuditDataset>> - Returns:
- the initial chain of consumer interceptors for this endpoint
-
createInitialProducerInterceptorChain
- Specified by:
createInitialProducerInterceptorChainin interfaceInterceptableEndpoint<MllpTransactionEndpointConfiguration,MllpTransactionComponent<AuditDatasetType extends MllpAuditDataset>> - Returns:
- the initial chain of producer interceptors for this endpoint
-
getAuditContext
- Specified by:
getAuditContextin interfaceAuditableEndpoint<AuditDatasetType extends MllpAuditDataset>- Returns:
- audit context to be used for this endpoint
-
isAudit
@ManagedAttribute(description="Audit Enabled") public boolean isAudit()Returns true when ATNA auditing should be performed.- Specified by:
isAuditin interfaceAuditableEndpoint<AuditDatasetType extends MllpAuditDataset>- Returns:
- true when ATNA auditing should be performed.
-
getClientAuditStrategy
Description copied from interface:AuditableEndpointReturns client-side audit strategy instance.- Specified by:
getClientAuditStrategyin interfaceAuditableEndpoint<AuditDatasetType extends MllpAuditDataset>- Returns:
- client-side audit strategy instance
-
getServerAuditStrategy
Description copied from interface:AuditableEndpointReturns server-side audit strategy instance.- Specified by:
getServerAuditStrategyin interfaceAuditableEndpoint<AuditDatasetType extends MllpAuditDataset>- Returns:
- server-side audit strategy instance
-
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
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
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()
-