Class AbstractWsComponent<AuditDatasetType extends WsAuditDataset,ConfigType extends WsTransactionConfiguration<AuditDatasetType>,InteractionIdType extends WsInteractionId<ConfigType>>
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultComponent
-
- org.openehealth.ipf.platform.camel.ihe.ws.AbstractWsComponent<AuditDatasetType,ConfigType,InteractionIdType>
-
- Type Parameters:
AuditDatasetType
- audit typeConfigType
- configuration type
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.Component
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
,AuditableComponent<AuditDatasetType>
- Direct Known Subclasses:
AbstractHl7v2WsComponent
,ChCiddComponent
,ChCiqComponent
,ChPiddComponent
,ChPpq1Component
,ChPpq2Component
,Hl7v3Component
,Iti58Component
,Iti59Component
,XdsComponent
public abstract class AbstractWsComponent<AuditDatasetType extends WsAuditDataset,ConfigType extends WsTransactionConfiguration<AuditDatasetType>,InteractionIdType extends WsInteractionId<ConfigType>> extends org.apache.camel.support.DefaultComponent implements AuditableComponent<AuditDatasetType>
Base component class for Web Service-based IHE components.- Author:
- Dmytro Rud
-
-
Constructor Summary
Constructors Constructor Description AbstractWsComponent(InteractionIdType interactionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuditContext
getAuditContext(Map<String,Object> parameters)
AuditStrategy<AuditDatasetType>
getClientAuditStrategy()
Returns client-side audit strategy instance.protected InterceptorProvider
getCustomInterceptors(Map<String,Object> parameters)
protected List<AbstractFeature>
getFeatures(Map<String,Object> parameters)
InteractionIdType
getInteractionId()
protected Map<String,Object>
getProperties(Map<String,Object> parameters)
protected List<String>
getSchemaLocations(Map<String,Object> parameters)
AuditStrategy<AuditDatasetType>
getServerAuditStrategy()
Returns server-side audit strategy instance.ConfigType
getWsTransactionConfiguration()
-
Methods inherited from class org.apache.camel.support.DefaultComponent
afterConfiguration, createEndpoint, createEndpoint, createEndpoint, doBuild, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
-
Methods inherited from interface org.apache.camel.Component
createEndpoint, createEndpoint, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, useRawUri
-
-
-
-
Constructor Detail
-
AbstractWsComponent
public AbstractWsComponent(InteractionIdType interactionId)
-
-
Method Detail
-
getInteractionId
public InteractionIdType getInteractionId()
-
getCustomInterceptors
protected InterceptorProvider getCustomInterceptors(Map<String,Object> parameters)
-
getAuditContext
protected AuditContext getAuditContext(Map<String,Object> parameters)
-
getFeatures
protected List<AbstractFeature> getFeatures(Map<String,Object> parameters)
-
getClientAuditStrategy
public AuditStrategy<AuditDatasetType> getClientAuditStrategy()
Description copied from interface:AuditableComponent
Returns client-side audit strategy instance.- Specified by:
getClientAuditStrategy
in interfaceAuditableComponent<AuditDatasetType extends WsAuditDataset>
- Returns:
- client-side audit strategy instance
-
getServerAuditStrategy
public AuditStrategy<AuditDatasetType> getServerAuditStrategy()
Description copied from interface:AuditableComponent
Returns server-side audit strategy instance.- Specified by:
getServerAuditStrategy
in interfaceAuditableComponent<AuditDatasetType extends WsAuditDataset>
- Returns:
- server-side audit strategy instance
-
getWsTransactionConfiguration
public ConfigType getWsTransactionConfiguration()
- Returns:
- static configuration parameters of the Web Service which server endpoints of this transaction.
-
-