Class SpringIntegrationEndpoint
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultEndpoint
-
- org.apache.camel.component.spring.integration.SpringIntegrationEndpoint
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.Endpoint
,org.apache.camel.IsSingleton
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.HasId
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
@UriEndpoint(firstVersion="1.4.0", scheme="spring-integration", title="Spring Integration", syntax="spring-integration:defaultChannel", category={SPRING,EVENTBUS}) public class SpringIntegrationEndpoint extends org.apache.camel.support.DefaultEndpoint
Bridge Camel with Spring Integration.
-
-
Constructor Summary
Constructors Constructor Description SpringIntegrationEndpoint(String uri, String channel, SpringIntegrationComponent component)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.camel.Consumer
createConsumer(org.apache.camel.Processor processor)
org.apache.camel.Producer
createProducer()
String
getDefaultChannel()
String
getInputChannel()
org.springframework.messaging.MessageChannel
getMessageChannel()
Deprecated.String
getOutputChannel()
boolean
isInOut()
void
setDefaultChannel(String defaultChannel)
The default channel name which is used by the Spring Integration Spring context.void
setInOut(boolean inOut)
The exchange pattern that the Spring integration endpoint should use.void
setInputChannel(String input)
The Spring integration input channel name that this endpoint wants to consume from Spring integration.void
setOutputChannel(String output)
The Spring integration output channel name that is used to send messages to Spring integration.-
Methods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
SpringIntegrationEndpoint
public SpringIntegrationEndpoint(String uri, String channel, SpringIntegrationComponent component)
-
-
Method Detail
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
- Throws:
Exception
-
setInputChannel
public void setInputChannel(String input)
The Spring integration input channel name that this endpoint wants to consume from Spring integration.
-
getInputChannel
public String getInputChannel()
-
setOutputChannel
public void setOutputChannel(String output)
The Spring integration output channel name that is used to send messages to Spring integration.
-
getOutputChannel
public String getOutputChannel()
-
setDefaultChannel
public void setDefaultChannel(String defaultChannel)
The default channel name which is used by the Spring Integration Spring context. It will equal to the inputChannel name for the Spring Integration consumer and the outputChannel name for the Spring Integration provider.
-
getDefaultChannel
public String getDefaultChannel()
-
getMessageChannel
@Deprecated public org.springframework.messaging.MessageChannel getMessageChannel()
Deprecated.
-
setInOut
public void setInOut(boolean inOut)
The exchange pattern that the Spring integration endpoint should use. If inOut=true then a reply channel is expected, either from the Spring Integration Message header or configured on the endpoint.
-
isInOut
public boolean isInOut()
-
-