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

public abstract class AbstractAsyncResponseWebService extends AbstractWebService
Base class for receivers of asynchronous responses for Web Service-based IHE transactions.
Author:
Dmytro Rud
  • Constructor Details

    • AbstractAsyncResponseWebService

      public AbstractAsyncResponseWebService()
  • Method Details

    • canDropCorrelation

      protected boolean canDropCorrelation(Object response)
      Determines whether correlation items related to the given message can be dropped.

      Per default, always returns true.

      Parameters:
      response - response message.
      Returns:
      true when 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:
      process in class AbstractWebService
      Parameters:
      body - contents of the in-message body to be processed.
      headers - additional in-message headers (can be null).
      exchangePattern - pattern of the exchange put into the route.
      Returns:
      the resulting exchange.
    • getAlternativeResponseKeys

      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. 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-null alternative keys, or null, when no keys could have been extracted.