Class AbstractAsyncResponseWebService
java.lang.Object
org.openehealth.ipf.platform.camel.ihe.ws.AbstractWebService
org.openehealth.ipf.platform.camel.ihe.ws.AbstractAsyncResponseWebService
- Direct Known Subclasses:
Iti38AsyncResponseService,Iti39AsyncResponseService,Iti41AsyncResponseService,Iti55AsyncResponseService,Iti55DeferredResponseService,Iti56AsyncResponseService,Iti63AsyncResponseService,Rad75AsyncResponseService
Base class for receivers of asynchronous responses for Web Service-based IHE transactions.
- Author:
- Dmytro Rud
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanDropCorrelation(Object response) Determines whether correlation items related to the given message can be dropped.protected String[]getAlternativeResponseKeys(Object response) Determines the set of correlation keys for the given response message, which are alternative to the WS-Addressing message ID referenced in the <ReplyTo> header.protected ExchangeBefore calling the base method, determines correlation key and stores it into message headers.Methods inherited from class org.openehealth.ipf.platform.camel.ihe.ws.AbstractWebService
getConsumer, process, setConsumer
-
Constructor Details
-
AbstractAsyncResponseWebService
public AbstractAsyncResponseWebService()
-
-
Method Details
-
canDropCorrelation
Determines whether correlation items related to the given message can be dropped.Per default, always returns
true.- Parameters:
response- response message.- Returns:
truewhen correlation items related to the given message can be dropped.
-
process
protected Exchange process(Object body, Map<String, Object> headers, ExchangePattern exchangePattern) Before calling the base method, determines correlation key and stores it into message headers.- Overrides:
processin classAbstractWebService- Parameters:
body- contents of the in-message body to be processed.headers- additional in-message headers (can benull).exchangePattern- pattern of the exchange put into the route.- Returns:
- the resulting exchange.
-
getAlternativeResponseKeys
Determines the set of correlation keys for the given response message, which are alternative to the WS-Addressing message ID referenced in the <ReplyTo> header. An example of alternative key is the query ID in HL7v3-based transactions.Per default, this method returns
null.- Parameters:
response- response message.- Returns:
- A non-empty collection of non-
nullalternative keys, ornull, when no keys could have been extracted.
-