Class SimpleHl7v2WsEndpoint<ComponentType extends AbstractHl7v2WsComponent>
- 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<WsAuditDataset,WsTransactionConfiguration<WsAuditDataset>>
-
- org.openehealth.ipf.platform.camel.ihe.hl7v2ws.SimpleHl7v2WsEndpoint<ComponentType>
-
- 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<WsAuditDataset>
,Hl7v2ConfigurationHolder<MllpAuditDataset>
,HL7v2Endpoint<MllpAuditDataset>
public abstract class SimpleHl7v2WsEndpoint<ComponentType extends AbstractHl7v2WsComponent> extends AbstractWsEndpoint<WsAuditDataset,WsTransactionConfiguration<WsAuditDataset>> implements HL7v2Endpoint<MllpAuditDataset>
Camel endpoint for HL7v2-WS transaction with a single operation.
-
-
Field Summary
-
Fields inherited from class org.openehealth.ipf.platform.camel.ihe.ws.AbstractWsEndpoint
CORRELATION_KEY_HEADER_NAME, INCOMING_HTTP_HEADERS, INCOMING_SOAP_HEADERS, OUTGOING_HTTP_HEADERS, OUTGOING_SOAP_HEADERS, WSA_REPLYTO_HEADER_NAME
-
-
Constructor Summary
Constructors Constructor Description SimpleHl7v2WsEndpoint(String endpointUri, String address, AbstractWsComponent<WsAuditDataset,WsTransactionConfiguration<WsAuditDataset>,? extends WsInteractionId<WsTransactionConfiguration<WsAuditDataset>>> component, Map<String,Object> parameters, Class<? extends AbstractWebService> serviceClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.Consumer
createConsumer(org.apache.camel.Processor processor)
org.apache.camel.Producer
createProducer()
ComponentType
getComponent()
Hl7v2TransactionConfiguration<MllpAuditDataset>
getHl7v2TransactionConfiguration()
Returns component configuration.Hl7v2InteractionId<MllpAuditDataset>
getInteractionId()
JaxWsClientFactory<WsAuditDataset>
getJaxWsClientFactory()
JaxWsServiceFactory<WsAuditDataset>
getJaxWsServiceFactory()
NakFactory<MllpAuditDataset>
getNakFactory()
Returns transaction-specific NAK factory.protected List<Interceptor>
getProducerInterceptorChain()
-
Methods inherited from class org.openehealth.ipf.platform.camel.ihe.ws.AbstractWsEndpoint
getAuditContext, getClientAuditStrategy, getCorrelator, getCustomInterceptors, getCustomServiceInstance, getFeatures, getHomeCommunityId, getHostnameVerifier, getPassword, getProducer, getProperties, getRejectionHandlingStrategy, getSchemaLocations, getSecurityInformation, getServerAuditStrategy, getServiceAddress, getServiceInstance, getServiceUrl, getSslContextParameters, getUsername, isAddressing, isAudit, isMtom, isSecure, isSingleton, isSwaOutSupport, setAuditContext, setCorrelator, setHomeCommunityId, setHomeCommunityId, setHostnameVerifier, setPassword, setRejectionHandlingStrategy, setSecure, setSslContextParameters, setUsername
-
Methods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
-
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
configureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, isLenientProperties, isSingletonProducer, setCamelContext
-
-
-
-
Constructor Detail
-
SimpleHl7v2WsEndpoint
public SimpleHl7v2WsEndpoint(String endpointUri, String address, AbstractWsComponent<WsAuditDataset,WsTransactionConfiguration<WsAuditDataset>,? extends WsInteractionId<WsTransactionConfiguration<WsAuditDataset>>> component, Map<String,Object> parameters, Class<? extends AbstractWebService> serviceClass)
-
-
Method Detail
-
getProducerInterceptorChain
protected List<Interceptor> getProducerInterceptorChain()
-
createProducer
public org.apache.camel.Producer createProducer()
- Specified by:
createProducer
in interfaceorg.apache.camel.Endpoint
- Overrides:
createProducer
in classAbstractWsEndpoint<WsAuditDataset,WsTransactionConfiguration<WsAuditDataset>>
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
- Specified by:
createConsumer
in interfaceorg.apache.camel.Endpoint
- Overrides:
createConsumer
in classAbstractWsEndpoint<WsAuditDataset,WsTransactionConfiguration<WsAuditDataset>>
-
getJaxWsClientFactory
public JaxWsClientFactory<WsAuditDataset> getJaxWsClientFactory()
- Specified by:
getJaxWsClientFactory
in classAbstractWsEndpoint<WsAuditDataset,WsTransactionConfiguration<WsAuditDataset>>
- Returns:
- JAX-WS client object factory.
-
getJaxWsServiceFactory
public JaxWsServiceFactory<WsAuditDataset> getJaxWsServiceFactory()
- Specified by:
getJaxWsServiceFactory
in classAbstractWsEndpoint<WsAuditDataset,WsTransactionConfiguration<WsAuditDataset>>
- Returns:
- JAX-WS service object factory.
-
getComponent
public ComponentType getComponent()
- Overrides:
getComponent
in classAbstractWsEndpoint<WsAuditDataset,WsTransactionConfiguration<WsAuditDataset>>
-
getHl7v2TransactionConfiguration
public Hl7v2TransactionConfiguration<MllpAuditDataset> getHl7v2TransactionConfiguration()
Description copied from interface:Hl7v2ConfigurationHolder
Returns component configuration.- Specified by:
getHl7v2TransactionConfiguration
in interfaceHl7v2ConfigurationHolder<ComponentType extends AbstractHl7v2WsComponent>
-
getNakFactory
public NakFactory<MllpAuditDataset> getNakFactory()
Description copied from interface:Hl7v2ConfigurationHolder
Returns transaction-specific NAK factory.- Specified by:
getNakFactory
in interfaceHl7v2ConfigurationHolder<ComponentType extends AbstractHl7v2WsComponent>
-
getInteractionId
public Hl7v2InteractionId<MllpAuditDataset> getInteractionId()
- Specified by:
getInteractionId
in interfaceHl7v2ConfigurationHolder<ComponentType extends AbstractHl7v2WsComponent>
-
-