Class Iti55DeferredResponseService
java.lang.Object
org.openehealth.ipf.platform.camel.ihe.ws.AbstractWebService
org.openehealth.ipf.platform.camel.ihe.ws.AbstractAsyncResponseWebService
org.openehealth.ipf.platform.camel.ihe.hl7v3.iti55.deferredresponse.Iti55DeferredResponseService
- All Implemented Interfaces:
Iti55DeferredResponsePortType
public class Iti55DeferredResponseService
extends AbstractAsyncResponseWebService
implements Iti55DeferredResponsePortType
Service implementation for the ITI-55 XCPD Initiating Gateway actor
(receiver of deferred responses).
- Author:
- Dmytro Rud
-
Field Summary
Fields inherited from interface org.openehealth.ipf.commons.ihe.hl7v3.iti55.asyncresponse.Iti55DeferredResponsePortType
DEFERRED_RESPONSE_INPUT_ACTION, DEFERRED_RESPONSE_OUTPUT_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canDropCorrelation
(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.receiveDeferredResponse
(String responseString) Methods inherited from class org.openehealth.ipf.platform.camel.ihe.ws.AbstractAsyncResponseWebService
process
Methods inherited from class org.openehealth.ipf.platform.camel.ihe.ws.AbstractWebService
getConsumer, process, setConsumer
-
Constructor Details
-
Iti55DeferredResponseService
public Iti55DeferredResponseService()
-
-
Method Details
-
canDropCorrelation
Description copied from class:AbstractAsyncResponseWebService
Determines whether correlation items related to the given message can be dropped.Per default, always returns
true
.- Overrides:
canDropCorrelation
in classAbstractAsyncResponseWebService
- Parameters:
response
- response message.- Returns:
true
when correlation items related to the given message can be dropped.
-
receiveDeferredResponse
- Specified by:
receiveDeferredResponse
in interfaceIti55DeferredResponsePortType
-
getAlternativeResponseKeys
Description copied from class:AbstractAsyncResponseWebService
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
.- Overrides:
getAlternativeResponseKeys
in classAbstractAsyncResponseWebService
- Parameters:
response
- response message.- Returns:
- A non-empty collection of non-
null
alternative keys, ornull
, when no keys could have been extracted.
-