Class DefaultInterceptSendToEndpoint

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.InterceptSendToEndpoint

    public class DefaultInterceptSendToEndpoint
    extends Object
    implements org.apache.camel.spi.InterceptSendToEndpoint, org.apache.camel.ShutdownableService
    This is an endpoint when sending to it, is intercepted and is routed in a detour (before and optionally after).
    • Constructor Detail

      • DefaultInterceptSendToEndpoint

        public DefaultInterceptSendToEndpoint​(org.apache.camel.Endpoint destination,
                                              boolean skip)
        Intercepts sending to the given endpoint
        Parameters:
        destination - the original endpoint
        skip - true to skip sending after the detour to the original endpoint
    • Method Detail

      • setBefore

        public void setBefore​(org.apache.camel.Processor before)
        Specified by:
        setBefore in interface org.apache.camel.spi.InterceptSendToEndpoint
      • setAfter

        public void setAfter​(org.apache.camel.Processor after)
        Specified by:
        setAfter in interface org.apache.camel.spi.InterceptSendToEndpoint
      • setSkip

        public void setSkip​(boolean skip)
      • getBefore

        public org.apache.camel.Processor getBefore()
        Specified by:
        getBefore in interface org.apache.camel.spi.InterceptSendToEndpoint
      • getAfter

        public org.apache.camel.Processor getAfter()
        Specified by:
        getAfter in interface org.apache.camel.spi.InterceptSendToEndpoint
      • getOriginalEndpoint

        public org.apache.camel.Endpoint getOriginalEndpoint()
        Specified by:
        getOriginalEndpoint in interface org.apache.camel.spi.InterceptSendToEndpoint
      • isSkip

        public boolean isSkip()
        Specified by:
        isSkip in interface org.apache.camel.spi.InterceptSendToEndpoint
      • getEndpointUri

        public String getEndpointUri()
        Specified by:
        getEndpointUri in interface org.apache.camel.Endpoint
      • getExchangePattern

        public org.apache.camel.ExchangePattern getExchangePattern()
        Specified by:
        getExchangePattern in interface org.apache.camel.Endpoint
      • getEndpointBaseUri

        public String getEndpointBaseUri()
        Specified by:
        getEndpointBaseUri in interface org.apache.camel.Endpoint
      • getEndpointKey

        public String getEndpointKey()
        Specified by:
        getEndpointKey in interface org.apache.camel.Endpoint
      • createExchange

        public org.apache.camel.Exchange createExchange()
        Specified by:
        createExchange in interface org.apache.camel.Endpoint
      • createExchange

        public org.apache.camel.Exchange createExchange​(org.apache.camel.ExchangePattern pattern)
        Specified by:
        createExchange in interface org.apache.camel.Endpoint
      • configureExchange

        public void configureExchange​(org.apache.camel.Exchange exchange)
        Specified by:
        configureExchange in interface org.apache.camel.Endpoint
      • getCamelContext

        public org.apache.camel.CamelContext getCamelContext()
        Specified by:
        getCamelContext in interface org.apache.camel.Endpoint
      • createProducer

        public org.apache.camel.Producer createProducer()
                                                 throws Exception
        Specified by:
        createProducer in interface org.apache.camel.Endpoint
        Throws:
        Exception
      • createAsyncProducer

        public org.apache.camel.AsyncProducer createAsyncProducer()
                                                           throws Exception
        Specified by:
        createAsyncProducer in interface org.apache.camel.Endpoint
        Throws:
        Exception
      • createConsumer

        public org.apache.camel.Consumer createConsumer​(org.apache.camel.Processor processor)
                                                 throws Exception
        Specified by:
        createConsumer in interface org.apache.camel.Endpoint
        Throws:
        Exception
      • createPollingConsumer

        public org.apache.camel.PollingConsumer createPollingConsumer()
                                                               throws Exception
        Specified by:
        createPollingConsumer in interface org.apache.camel.Endpoint
        Throws:
        Exception
      • configureProperties

        public void configureProperties​(Map<String,​Object> options)
        Specified by:
        configureProperties in interface org.apache.camel.Endpoint
      • setCamelContext

        public void setCamelContext​(org.apache.camel.CamelContext context)
        Specified by:
        setCamelContext in interface org.apache.camel.Endpoint
      • isLenientProperties

        public boolean isLenientProperties()
        Specified by:
        isLenientProperties in interface org.apache.camel.Endpoint
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.apache.camel.IsSingleton
      • start

        public void start()
        Specified by:
        start in interface org.apache.camel.Service
      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.camel.Service
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface org.apache.camel.ShutdownableService