Class AbstractWebService

    • Constructor Detail

      • AbstractWebService

        public AbstractWebService()
    • Method Detail

      • process

        protected org.apache.camel.Exchange process​(Object body,
                                                    Map<String,​Object> additionalHeaders,
                                                    org.apache.camel.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 org.apache.camel.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.