Class AbstractWebService
- java.lang.Object
-
- org.openehealth.ipf.platform.camel.ihe.ws.AbstractWebService
-
- Direct Known Subclasses:
AbstractAsyncResponseWebService
,AbstractHl7v2WebService
,AbstractHl7v3WebService
,ChCiddService
,ChPiddService
,ChPpq1Service
,ChPpq2Service
,HpdService
,Iti41Service
,Iti56Service
,Iti86Service
,XdsAdhocQueryService
,XdsRegistryRequestService
,XdsRetrieveDocumentSetService
public abstract class AbstractWebService extends Object
Base class for web services that are aware of aDefaultWsConsumer
.- Author:
- Jens Riemschneider
-
-
Constructor Summary
Constructors Constructor Description AbstractWebService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultWsConsumer
getConsumer()
Returns the configured ITI consumer instance.protected org.apache.camel.Exchange
process(Object body)
Calls the consumer for synchronous (InOut) processing via Camel without additional in-message headers.protected org.apache.camel.Exchange
process(Object body, Map<String,Object> additionalHeaders, org.apache.camel.ExchangePattern exchangePattern)
Calls the consumer for processing via Camel.void
setConsumer(DefaultWsConsumer consumer)
Sets the consumer to be used to process exchanges
-
-
-
Method Detail
-
process
protected org.apache.camel.Exchange process(Object body, Map<String,Object> additionalHeaders, org.apache.camel.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
protected org.apache.camel.Exchange process(Object body)
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
public void setConsumer(DefaultWsConsumer consumer)
Sets the consumer to be used to process exchanges- Parameters:
consumer
- the consumer to be used
-
getConsumer
protected DefaultWsConsumer getConsumer()
Returns the configured ITI consumer instance.
-
-