Package | Description |
---|---|
org.apache.camel |
The core Camel API.
|
org.apache.camel.builder | |
org.apache.camel.component.bean |
The Bean Component which will look up the
bean name in the Spring ApplicationContext and use that to dispatch messages to a POJO
|
org.apache.camel.component.mock |
The Mock Component which is used for testing of routing and mediation rules.
|
org.apache.camel.impl |
Default implementation classes for Camel Core
|
org.apache.camel.impl.cloud |
Base classes and implementation for Camel Cloud
|
org.apache.camel.model |
The JAXB POJOs for the
XML Configuration
of the routing rules.
|
org.apache.camel.model.cloud |
The JAXB POJOs for the remote service call DSL
|
org.apache.camel.processor |
A collection of Processor
implementations which are used to implement the
Enterprise Integration Patterns
|
org.apache.camel.util |
Utility classes used by the core of Camel.
|
Modifier and Type | Field and Description |
---|---|
protected static Map<String,ExchangePattern> |
ExchangePattern.MAP |
Modifier and Type | Method and Description |
---|---|
static ExchangePattern |
ExchangePattern.asEnum(String value) |
static ExchangePattern |
ExchangePattern.fromWsdlUri(String wsdlUri)
Converts the WSDL URI into a
ExchangePattern instance |
ExchangePattern |
Exchange.getPattern()
Returns the
ExchangePattern (MEP) of this exchange. |
static ExchangePattern |
ExchangePattern.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExchangePattern[] |
ExchangePattern.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Exchange |
Endpoint.createExchange(ExchangePattern pattern)
Create a new exchange for communicating with this endpoint
with the specified
ExchangePattern such as whether its going
to be an InOnly or InOut exchange |
Exchange |
Producer.createExchange(ExchangePattern pattern)
Deprecated.
use
Endpoint.createExchange(ExchangePattern) - will be removed in Camel 3.0 |
boolean |
AsyncProducerCallback.doInAsyncProducer(Producer producer,
AsyncProcessor asyncProducer,
Exchange exchange,
ExchangePattern exchangePattern,
AsyncCallback callback)
Performs operation on the given producer to send the given exchange.
|
T |
ProducerCallback.doInProducer(Producer producer,
Exchange exchange,
ExchangePattern exchangePattern)
Performs operation on the given producer to send the given exchange.
|
Exchange |
ProducerTemplate.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using Exchange.getException() . |
Exchange |
ProducerTemplate.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using Exchange.getException() . |
Exchange |
ProducerTemplate.send(String endpointUri,
ExchangePattern pattern,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using Exchange.getException() . |
Object |
ProducerTemplate.sendBody(Endpoint endpoint,
ExchangePattern pattern,
Object body)
Send the body to an endpoint with the given
ExchangePattern
returning any result output body
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
Object |
ProducerTemplate.sendBody(String endpointUri,
ExchangePattern pattern,
Object body)
Send the body to an endpoint returning any result output body
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
Object |
ProducerTemplate.sendBodyAndHeader(Endpoint endpoint,
ExchangePattern pattern,
Object body,
String header,
Object headerValue)
Sends the body to an endpoint with a specified header and header value
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
Object |
ProducerTemplate.sendBodyAndHeader(String endpoint,
ExchangePattern pattern,
Object body,
String header,
Object headerValue)
Sends the body to an endpoint with a specified header and header value
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
Object |
ProducerTemplate.sendBodyAndHeaders(Endpoint endpoint,
ExchangePattern pattern,
Object body,
Map<String,Object> headers)
Sends the body to an endpoint with the specified headers and header values
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
Object |
ProducerTemplate.sendBodyAndHeaders(String endpointUri,
ExchangePattern pattern,
Object body,
Map<String,Object> headers)
Sends the body to an endpoint with the specified headers and header values
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
Object |
ProducerTemplate.sendBodyAndProperty(Endpoint endpoint,
ExchangePattern pattern,
Object body,
String property,
Object propertyValue)
Sends the body to an endpoint with a specified property and property value
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
Object |
ProducerTemplate.sendBodyAndProperty(String endpoint,
ExchangePattern pattern,
Object body,
String property,
Object propertyValue)
Sends the body to an endpoint with a specified property and property value
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
void |
Exchange.setPattern(ExchangePattern pattern)
Allows the
ExchangePattern (MEP) of this exchange to be customized. |
Modifier and Type | Method and Description |
---|---|
ExchangeBuilder |
ExchangeBuilder.withPattern(ExchangePattern pattern)
Set the message exchange pattern on the exchange
|
Modifier and Type | Method and Description |
---|---|
ExchangePattern |
MethodInfo.getPattern()
Returns the
ExchangePattern that should be used when invoking this method. |
Modifier and Type | Method and Description |
---|---|
protected Object |
AbstractCamelInvocationHandler.afterInvoke(Method method,
Exchange exchange,
ExchangePattern pattern,
boolean isFuture) |
protected Object |
AbstractCamelInvocationHandler.invokeProxy(Method method,
ExchangePattern pattern,
Object[] args,
boolean binding) |
protected Object |
AbstractCamelInvocationHandler.invokeWithBody(Method method,
Object body,
ExchangePattern pattern) |
Modifier and Type | Method and Description |
---|---|
void |
MockEndpoint.expectedExchangePattern(ExchangePattern exchangePattern)
Adds an expectation that messages received should have the given exchange pattern
|
Modifier and Type | Method and Description |
---|---|
ExchangePattern |
DefaultEndpoint.getExchangePattern()
Returns the default exchange pattern to use when creating an exchange.
|
ExchangePattern |
DefaultExchange.getPattern() |
Modifier and Type | Method and Description |
---|---|
protected CompletableFuture<Object> |
DefaultProducerTemplate.asyncCallback(Endpoint endpoint,
ExchangePattern pattern,
Object body,
Synchronization onCompletion) |
protected CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSend(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor) |
CompletableFuture<Exchange> |
ProducerCache.asyncSend(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
CompletableFuture<Exchange> future)
Asynchronously sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
protected CompletableFuture<Exchange> |
DefaultProducerTemplate.asyncSendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange inExchange) |
CompletableFuture<Exchange> |
ProducerCache.asyncSendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange exchange,
CompletableFuture<Exchange> future)
Asynchronously sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
Exchange |
SynchronousDelegateProducer.createExchange(ExchangePattern pattern) |
Exchange |
DefaultEndpoint.createExchange(ExchangePattern pattern) |
Exchange |
InterceptSendToEndpointProcessor.createExchange(ExchangePattern pattern) |
Exchange |
DeferProducer.createExchange(ExchangePattern pattern) |
Exchange |
DefaultProducer.createExchange(ExchangePattern pattern) |
Exchange |
InterceptSendToEndpoint.createExchange(ExchangePattern pattern) |
boolean |
ProducerCache.doInAsyncProducer(Endpoint endpoint,
Exchange exchange,
ExchangePattern pattern,
AsyncCallback callback,
AsyncProducerCallback producerCallback)
Sends an exchange to an endpoint using a supplied callback supporting the asynchronous routing engine.
|
<T> T |
ProducerCache.doInProducer(Endpoint endpoint,
Exchange exchange,
ExchangePattern pattern,
ProducerCallback<T> callback)
Sends an exchange to an endpoint using a supplied callback, using the synchronous processing.
|
protected Object |
DefaultProducerTemplate.extractResultBody(Exchange result,
ExchangePattern pattern) |
Exchange |
DefaultProducerTemplate.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor) |
Exchange |
ProducerCache.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor)
Sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
Exchange |
DefaultProducerTemplate.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor) |
Exchange |
ProducerCache.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor)
Sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
Exchange |
DefaultProducerTemplate.send(String endpointUri,
ExchangePattern pattern,
Processor processor) |
Object |
DefaultProducerTemplate.sendBody(Endpoint endpoint,
ExchangePattern pattern,
Object body) |
Object |
DefaultProducerTemplate.sendBody(String endpointUri,
ExchangePattern pattern,
Object body) |
Object |
DefaultProducerTemplate.sendBodyAndHeader(Endpoint endpoint,
ExchangePattern pattern,
Object body,
String header,
Object headerValue) |
Object |
DefaultProducerTemplate.sendBodyAndHeader(String endpoint,
ExchangePattern pattern,
Object body,
String header,
Object headerValue) |
Object |
DefaultProducerTemplate.sendBodyAndHeaders(Endpoint endpoint,
ExchangePattern pattern,
Object body,
Map<String,Object> headers) |
Object |
DefaultProducerTemplate.sendBodyAndHeaders(String endpointUri,
ExchangePattern pattern,
Object body,
Map<String,Object> headers) |
Object |
DefaultProducerTemplate.sendBodyAndProperty(Endpoint endpoint,
ExchangePattern pattern,
Object body,
String property,
Object propertyValue) |
Object |
DefaultProducerTemplate.sendBodyAndProperty(String endpoint,
ExchangePattern pattern,
Object body,
String property,
Object propertyValue) |
protected Exchange |
ProducerCache.sendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange exchange) |
void |
DefaultEndpoint.setExchangePattern(ExchangePattern exchangePattern)
Sets the default exchange pattern when creating an exchange.
|
void |
DefaultExchange.setPattern(ExchangePattern pattern) |
Constructor and Description |
---|
DefaultExchange(CamelContext context,
ExchangePattern pattern) |
DefaultExchange(Endpoint fromEndpoint,
ExchangePattern pattern) |
Modifier and Type | Method and Description |
---|---|
ExchangePattern |
DefaultServiceCallProcessor.getExchangePattern() |
Constructor and Description |
---|
DefaultServiceCallProcessor(CamelContext camelContext,
String name,
String scheme,
String uri,
ExchangePattern exchangePattern,
ServiceLoadBalancer loadBalancer,
Expression expression) |
Modifier and Type | Method and Description |
---|---|
ExchangePattern |
ToDefinition.getPattern() |
ExchangePattern |
WireTapDefinition.getPattern() |
ExchangePattern |
InOnlyDefinition.getPattern() |
ExchangePattern |
SendDefinition.getPattern() |
ExchangePattern |
SetExchangePatternDefinition.getPattern() |
ExchangePattern |
InOutDefinition.getPattern() |
ExchangePattern |
ToDynamicDefinition.getPattern() |
Modifier and Type | Method and Description |
---|---|
ToDefinition |
ToDefinition.pattern(ExchangePattern pattern)
Deprecated.
will be removed in the near future. Instead use
ProcessorDefinition.inOnly()
or ProcessorDefinition.inOut() |
SetExchangePatternDefinition |
SetExchangePatternDefinition.pattern(ExchangePattern pattern) |
ToDynamicDefinition |
ToDynamicDefinition.pattern(ExchangePattern pattern)
Sets the optional
ExchangePattern used to invoke this endpoint |
Type |
ProcessorDefinition.setExchangePattern(ExchangePattern exchangePattern)
|
void |
ToDefinition.setPattern(ExchangePattern pattern)
Sets the optional
ExchangePattern used to invoke this endpoint |
void |
SetExchangePatternDefinition.setPattern(ExchangePattern pattern)
Sets the new exchange pattern of the Exchange to be used from this point forward
|
void |
ToDynamicDefinition.setPattern(ExchangePattern pattern) |
Type |
ProcessorDefinition.to(ExchangePattern pattern,
Endpoint... endpoints)
Sends the exchange to a list of endpoints
Notice the existing MEP is preserved
|
Type |
ProcessorDefinition.to(ExchangePattern pattern,
Endpoint endpoint)
Sends the exchange with certain exchange pattern to the given endpoint
Notice the existing MEP is preserved
|
Type |
ProcessorDefinition.to(ExchangePattern pattern,
Iterable<Endpoint> endpoints)
Sends the exchange to a list of endpoints
|
Type |
ProcessorDefinition.to(ExchangePattern pattern,
String... uris)
Sends the exchange to a list of endpoints
Notice the existing MEP is preserved
|
Type |
ProcessorDefinition.to(ExchangePattern pattern,
String uri)
Sends the exchange with certain exchange pattern to the given endpoint
Notice the existing MEP is preserved
|
Constructor and Description |
---|
SetExchangePatternDefinition(ExchangePattern pattern) |
ToDefinition(Endpoint endpoint,
ExchangePattern pattern) |
ToDefinition(String uri,
ExchangePattern pattern) |
Modifier and Type | Method and Description |
---|---|
ExchangePattern |
ServiceCallConfigurationDefinition.getPattern() |
ExchangePattern |
ServiceCallDefinition.getPattern() |
Modifier and Type | Method and Description |
---|---|
ServiceCallConfigurationDefinition |
ServiceCallConfigurationDefinition.pattern(ExchangePattern pattern)
Sets the optional
ExchangePattern used to invoke this endpoint |
ServiceCallDefinition |
ServiceCallDefinition.pattern(ExchangePattern pattern)
Sets the optional
ExchangePattern used to invoke this endpoint |
void |
ServiceCallConfigurationDefinition.setPattern(ExchangePattern pattern) |
void |
ServiceCallDefinition.setPattern(ExchangePattern pattern)
Sets the optional
ExchangePattern used to invoke this endpoint |
Modifier and Type | Field and Description |
---|---|
protected ExchangePattern |
SendProcessor.destinationExchangePattern |
protected ExchangePattern |
SendProcessor.pattern |
protected ExchangePattern |
SendDynamicProcessor.pattern |
Modifier and Type | Method and Description |
---|---|
ExchangePattern |
ExchangePatternProcessor.getExchangePattern() |
ExchangePattern |
SendProcessor.getPattern() |
ExchangePattern |
SendDynamicProcessor.getPattern() |
protected ExchangePattern |
RecipientListProcessor.resolveExchangePattern(Object recipient) |
Modifier and Type | Method and Description |
---|---|
protected Exchange |
WireTapProcessor.configureExchange(Exchange exchange,
ExchangePattern pattern) |
protected Exchange |
SendProcessor.configureExchange(Exchange exchange,
ExchangePattern pattern) |
protected Exchange |
SendDynamicProcessor.configureExchange(Exchange exchange,
ExchangePattern pattern,
ExchangePattern destinationExchangePattern,
Endpoint endpoint) |
Exchange |
UnitOfWorkProducer.createExchange(ExchangePattern pattern) |
protected ProcessorExchangePair |
RecipientListProcessor.createProcessorExchangePair(int index,
Endpoint endpoint,
Producer producer,
Exchange exchange,
ExchangePattern pattern)
This logic is similar to MulticastProcessor but we have to return a RecipientProcessorExchangePair instead
|
protected Exchange |
Enricher.createResourceExchange(Exchange source,
ExchangePattern pattern)
Creates a new
DefaultExchange instance from the given
exchange . |
void |
ExchangePatternProcessor.setExchangePattern(ExchangePattern ep) |
void |
SendDynamicProcessor.setPattern(ExchangePattern pattern) |
Constructor and Description |
---|
ExchangePatternProcessor(ExchangePattern ep) |
SendProcessor(Endpoint destination,
ExchangePattern pattern) |
WireTapProcessor(SendDynamicProcessor dynamicProcessor,
Processor processor,
ExchangePattern exchangePattern,
ExecutorService executorService,
boolean shutdownExecutorService) |
Modifier and Type | Method and Description |
---|---|
static ExchangePattern |
EndpointHelper.resolveExchangePatternFromUrl(String url)
Attempts to resolve if the url has an exchangePattern option configured
|
Modifier and Type | Method and Description |
---|---|
static Object |
ExchangeHelper.extractResultBody(Exchange exchange,
ExchangePattern pattern)
Extracts the body from the given exchange.
|
Apache Camel