Class CamelDestination

  • All Implemented Interfaces:
    org.apache.cxf.configuration.Configurable, org.apache.cxf.transport.Destination, org.apache.cxf.transport.DestinationWithEndpoint, org.apache.cxf.transport.Observable

    public class CamelDestination
    extends org.apache.cxf.transport.AbstractDestination
    implements org.apache.cxf.configuration.Configurable
    Forwards messages from Camel to CXF and the CXF response back to Camel
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static String BASE_BEAN_NAME_SUFFIX  
      • Fields inherited from class org.apache.cxf.transport.AbstractDestination

        bus, endpointInfo, reference
      • Fields inherited from class org.apache.cxf.transport.AbstractObservable

        incomingObserver
    • Constructor Summary

      Constructors 
      Constructor Description
      CamelDestination​(org.apache.camel.CamelContext camelContext, org.apache.cxf.Bus bus, org.apache.cxf.transport.ConduitInitiator ci, org.apache.cxf.service.model.EndpointInfo info)  
      CamelDestination​(org.apache.camel.CamelContext camelContext, org.apache.cxf.Bus bus, org.apache.cxf.transport.ConduitInitiator ci, org.apache.cxf.service.model.EndpointInfo info, org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy, boolean checkException)  
    • Constructor Detail

      • CamelDestination

        public CamelDestination​(org.apache.camel.CamelContext camelContext,
                                org.apache.cxf.Bus bus,
                                org.apache.cxf.transport.ConduitInitiator ci,
                                org.apache.cxf.service.model.EndpointInfo info)
      • CamelDestination

        public CamelDestination​(org.apache.camel.CamelContext camelContext,
                                org.apache.cxf.Bus bus,
                                org.apache.cxf.transport.ConduitInitiator ci,
                                org.apache.cxf.service.model.EndpointInfo info,
                                org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy,
                                boolean checkException)
    • Method Detail

      • getLogger

        protected Logger getLogger()
        Specified by:
        getLogger in class org.apache.cxf.transport.AbstractObservable
      • setCheckException

        public void setCheckException​(boolean exception)
      • isCheckException

        public boolean isCheckException()
      • getInbuiltBackChannel

        protected org.apache.cxf.transport.Conduit getInbuiltBackChannel​(org.apache.cxf.message.Message inMessage)
        Specified by:
        getInbuiltBackChannel in class org.apache.cxf.transport.AbstractDestination
        Parameters:
        inMessage - the incoming message
        Returns:
        the inbuilt backchannel
      • activate

        public void activate()
        Overrides:
        activate in class org.apache.cxf.transport.AbstractObservable
      • deactivate

        public void deactivate()
        Overrides:
        deactivate in class org.apache.cxf.transport.AbstractObservable
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface org.apache.cxf.transport.Destination
        Overrides:
        shutdown in class org.apache.cxf.transport.AbstractDestination
      • getCamelContext

        public org.apache.camel.CamelContext getCamelContext()
      • setCamelContext

        public void setCamelContext​(org.apache.camel.CamelContext camelContext)
      • incoming

        protected void incoming​(org.apache.camel.Exchange camelExchange)
      • getBeanName

        public String getBeanName()
        Specified by:
        getBeanName in interface org.apache.cxf.configuration.Configurable
      • getCamelDestinationUri

        public String getCamelDestinationUri()
      • markPartialResponse

        protected boolean markPartialResponse​(org.apache.cxf.message.Message partialResponse,
                                              org.apache.cxf.ws.addressing.EndpointReferenceType decoupledTarget)
        Mark message as a partial message.
        Parameters:
        partialResponse - the partial response message
        decoupledTarget - the decoupled target
        Returns:
        true if partial responses is supported
      • getConduitInitiator

        protected org.apache.cxf.transport.ConduitInitiator getConduitInitiator()
        Returns:
        the associated conduit initiator
      • propagateResponseHeadersToCamel

        protected void propagateResponseHeadersToCamel​(org.apache.cxf.message.Message outMessage,
                                                       org.apache.camel.Exchange camelExchange)