Class Hl7v3ContinuationAwareEndpoint
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.ws.AbstractWsEndpoint<Hl7v3AuditDataset>
org.openehealth.ipf.platform.camel.ihe.hl7v3.Hl7v3Endpoint
org.openehealth.ipf.platform.camel.ihe.hl7v3.Hl7v3ContinuationAwareEndpoint
- All Implemented Interfaces:
AutoCloseable, CamelContextAware, ComponentAware, Endpoint, IsSingleton, Service, ShutdownableService, HasCamelContext, HasId, StatefulService, SuspendableService, AuditableEndpoint<Hl7v3AuditDataset>
Camel endpoint implementation for HL7v3-based IHE components
with interactive response continuation support.
- Author:
- Dmytro Rud
-
Field Summary
Fields inherited from class AbstractWsEndpoint
CORRELATION_KEY_HEADER_NAME, INCOMING_HTTP_HEADERS, INCOMING_SOAP_HEADERS, OUTGOING_HTTP_HEADERS, OUTGOING_SOAP_HEADERS, WSA_REPLYTO_HEADER_NAMEFields inherited from class BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHl7v3ContinuationAwareEndpoint(String endpointUri, String address, Hl7v3Component component, Map<String, Object> parameters) -
Method Summary
Modifier and TypeMethodDescriptionConsumer-side only: Storage bean for continuation fragments.intConsumer-side only: Default count of data records in the first response fragment, when the request does not contain "initialQuantity" element.getProducer(AbstractWsEndpoint<Hl7v3AuditDataset> endpoint, JaxWsClientFactory<Hl7v3AuditDataset> clientFactory) Constructs and returns a transaction-specific Camel producer instancebooleanProducer-side only: Whether a "cancel continuation" message should be automatically sent to the server when all continuation fragments have been read.booleanbooleanWhether this endpoint should support HL7v3 continuation.booleanWhether the system should validate messages which are internally handled when performing HL7v3 interactive continuation.voidsetAutoCancel(boolean autoCancel) Producer-side only: Whether a "cancel continuation" message should be automatically sent to the server when all continuation fragments have been read.voidsetContinuationStorage(Hl7v3ContinuationStorage continuationStorage) Consumer-side only: Storage bean for continuation fragments.voidsetDefaultContinuationThreshold(int defaultContinuationThreshold) Consumer-side only: Default count of data records in the first response fragment, when the request does not contain "initialQuantity" element.voidsetSupportContinuation(boolean supportContinuation) Whether this endpoint should support HL7v3 continuation.voidsetValidationOnContinuation(boolean validationOnContinuation) Whether the system should validate messages which are internally handled when performing HL7v3 interactive continuation.Methods inherited from class AbstractWsEndpoint
createConsumer, createProducer, getAuditContext, getClientAuditStrategy, getComponent, getCorrelator, getCustomCxfInterceptors, getCustomServiceInstance, getFeatures, getHomeCommunityId, getHostnameVerifier, getHttpClientPolicy, getPassword, getProperties, getRejectionHandlingStrategy, getSchemaLocations, getSecurityInformation, getServerAuditStrategy, getServiceAddress, getServiceInstance, getServiceUrl, getSslContextParameters, getUsername, isAddressing, isAudit, isMtom, isSecure, isSingleton, isSwaOutSupport, setAuditContext, setCorrelator, setHomeCommunityId, setHomeCommunityId, setHostnameVerifier, setHttpClientPolicy, setPassword, setRejectionHandlingStrategy, setSecure, setSslContextParameters, setUsernameMethods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringMethods inherited from class 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 interface ComponentAware
getComponent, setComponentMethods inherited from interface Endpoint
configureExchange, configureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isRemote, isSingletonProducer, setCamelContextMethods inherited from interface ShutdownableService
shutdownMethods inherited from interface StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
Hl7v3ContinuationAwareEndpoint
-
-
Method Details
-
getProducer
public AbstractWsProducer<Hl7v3AuditDataset, ?, ?> getProducer(AbstractWsEndpoint<Hl7v3AuditDataset> endpoint, JaxWsClientFactory<Hl7v3AuditDataset> clientFactory) Description copied from class:AbstractWsEndpointConstructs and returns a transaction-specific Camel producer instance- Specified by:
getProducerin classAbstractWsEndpoint<Hl7v3AuditDataset>- Parameters:
clientFactory- JAX-WS client factory instance.- Returns:
- Camel producer instance.
-
isManualAudit
public boolean isManualAudit()- Returns:
trueif ATNA audit strategies must be manually applied in Camel producer and consumer instead of CXF interceptors. This will be the case when interactive response continuation is supported.
-
getJaxWsClientFactory
- Overrides:
getJaxWsClientFactoryin classHl7v3Endpoint- Returns:
- JAX-WS client object factory.
-
getJaxWsServiceFactory
- Overrides:
getJaxWsServiceFactoryin classHl7v3Endpoint- Returns:
- JAX-WS service object factory.
-
setSupportContinuation
public void setSupportContinuation(boolean supportContinuation) Whether this endpoint should support HL7v3 continuation.truewhen this endpoint supports HL7v3 continuation. -
setAutoCancel
public void setAutoCancel(boolean autoCancel) Producer-side only: Whether a "cancel continuation" message should be automatically sent to the server when all continuation fragments have been read. This parameter is relevant only on producer side. -
setDefaultContinuationThreshold
public void setDefaultContinuationThreshold(int defaultContinuationThreshold) Consumer-side only: Default count of data records in the first response fragment, when the request does not contain "initialQuantity" element. Negative values mean "no continuation, when initialQuantity is not specified". This parameter is relevant only on consumer side. -
setContinuationStorage
Consumer-side only: Storage bean for continuation fragments. This parameter is relevant only on consumer side. -
setValidationOnContinuation
public void setValidationOnContinuation(boolean validationOnContinuation) Whether the system should validate messages which are internally handled when performing HL7v3 interactive continuation.truewhen messages, which are internally handled when performing HL7v3 interactive continuation, should be validated. -
isSupportContinuation
public boolean isSupportContinuation()Whether this endpoint should support HL7v3 continuation.truewhen this endpoint supports HL7v3 continuation. -
isAutoCancel
public boolean isAutoCancel()Producer-side only: Whether a "cancel continuation" message should be automatically sent to the server when all continuation fragments have been read. This parameter is relevant only on producer side. -
getDefaultContinuationThreshold
public int getDefaultContinuationThreshold()Consumer-side only: Default count of data records in the first response fragment, when the request does not contain "initialQuantity" element. Negative values mean "no continuation, when initialQuantity is not specified". This parameter is relevant only on consumer side. -
getContinuationStorage
Consumer-side only: Storage bean for continuation fragments. This parameter is relevant only on consumer side. -
isValidationOnContinuation
public boolean isValidationOnContinuation()Whether the system should validate messages which are internally handled when performing HL7v3 interactive continuation.truewhen messages, which are internally handled when performing HL7v3 interactive continuation, should be validated.
-