org.apache.camel.component.spring.integration
Class SpringIntegrationConsumer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer
          extended by org.apache.camel.component.spring.integration.SpringIntegrationConsumer
All Implemented Interfaces:
org.apache.camel.Consumer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.springframework.integration.core.MessageHandler

public class SpringIntegrationConsumer
extends org.apache.camel.impl.DefaultConsumer
implements org.springframework.integration.core.MessageHandler

A consumer of exchanges for the Spring Integration Please specify the inputChannel in the endpoint url for this consumer. If the message pattern is inOut, the outputChannel property should be set for the outgoing message.

Version:

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultConsumer
log
 
Constructor Summary
SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint, org.apache.camel.Processor processor)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 SpringIntegrationEndpoint getEndpoint()
           
 void handleMessage(org.springframework.integration.Message<?> siInMessage)
           
 
Methods inherited from class org.apache.camel.impl.DefaultConsumer
getAsyncProcessor, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

SpringIntegrationConsumer

public SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint,
                                 org.apache.camel.Processor processor)
Method Detail

getEndpoint

public SpringIntegrationEndpoint getEndpoint()
Specified by:
getEndpoint in interface org.apache.camel.Consumer
Overrides:
getEndpoint in class org.apache.camel.impl.DefaultConsumer

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class org.apache.camel.impl.DefaultConsumer
Throws:
Exception

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class org.apache.camel.impl.DefaultConsumer
Throws:
Exception

handleMessage

public void handleMessage(org.springframework.integration.Message<?> siInMessage)
Specified by:
handleMessage in interface org.springframework.integration.core.MessageHandler


Apache CAMEL