Class AbstractWebService
java.lang.Object
org.openehealth.ipf.platform.camel.ihe.ws.AbstractWebService
- Direct Known Subclasses:
AbstractAsyncResponseWebService,AbstractHl7v2WebService,AbstractHl7v3WebService,ChCiddService,ChPiddService,ChPpq1Service,HpdService,Iti41Service,Iti48Service,Iti56Service,Iti80Service,Iti86Service,Xacml20QueryService,XdsAdhocQueryService,XdsRegistryRequestService,XdsRetrieveDocumentSetService
Base class for web services that are aware of a
DefaultWsConsumer.- Author:
- Jens Riemschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultWsConsumerReturns the configured ITI consumer instance.protected ExchangeCalls the consumer for synchronous (InOut) processing via Camel without additional in-message headers.protected ExchangeCalls the consumer for processing via Camel.voidsetConsumer(DefaultWsConsumer consumer) Sets the consumer to be used to process exchanges
-
Constructor Details
-
AbstractWebService
public AbstractWebService()
-
-
Method Details
-
process
protected Exchange process(Object body, Map<String, Object> additionalHeaders, ExchangePattern exchangePattern) Calls the consumer for processing via Camel.- Parameters:
body- contents of the in-message body to be processed.additionalHeaders- additional in-message headers (can benull).exchangePattern- pattern of the exchange put into the route.- Returns:
- the resulting exchange.
-
process
Calls the consumer for synchronous (InOut) processing via Camel without additional in-message headers.- Parameters:
body- contents of the in-message body to be processed.- Returns:
- the resulting exchange.
-
setConsumer
Sets the consumer to be used to process exchanges- Parameters:
consumer- the consumer to be used
-
getConsumer
Returns the configured ITI consumer instance.
-