public abstract class AbstractWebService extends Object
DefaultWsConsumer
.Constructor and Description |
---|
AbstractWebService() |
Modifier and Type | Method and 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
|
protected org.apache.camel.Exchange process(Object body, Map<String,Object> additionalHeaders, org.apache.camel.ExchangePattern exchangePattern)
body
- contents of the in-message body to be processed.additionalHeaders
- additional in-message headers (can be null
).exchangePattern
- pattern of the exchange put into the route.protected org.apache.camel.Exchange process(Object body)
body
- contents of the in-message body to be processed.public void setConsumer(DefaultWsConsumer consumer)
consumer
- the consumer to be usedprotected DefaultWsConsumer getConsumer()
Copyright © 2018 Open eHealth Foundation. All rights reserved.