Class AbstractWebService

java.lang.Object
org.openehealth.ipf.platform.camel.ihe.ws.AbstractWebService
Direct Known Subclasses:
AbstractAsyncResponseWebService, AbstractHl7v2WebService, AbstractHl7v3WebService, ChCiddService, ChPiddService, ChPpq1Service, HpdService, Iti41Service, Iti56Service, Iti80Service, Iti86Service, Xacml20QueryService, XdsAdhocQueryService, XdsRegistryRequestService, XdsRetrieveDocumentSetService

public abstract class AbstractWebService extends Object
Base class for web services that are aware of a DefaultWsConsumer.
Author:
Jens Riemschneider
  • Constructor Details

    • AbstractWebService

      public AbstractWebService()
  • Method Details

    • process

      protected Exchange process(Object body, Map<String,Object> additionalHeaders, 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 be null).
      exchangePattern - pattern of the exchange put into the route.
      Returns:
      the resulting exchange.
    • process

      protected 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.