Package | Description |
---|---|
org.apache.camel |
The core Camel API.
|
org.apache.camel.builder | |
org.apache.camel.builder.xml | |
org.apache.camel.component.file |
The File Component for working with file systems.
|
org.apache.camel.impl |
Default implementation classes for Camel Core
|
org.apache.camel.impl.transformer |
Transformer implementation classes.
|
org.apache.camel.impl.validator |
Validator implementation classes.
|
org.apache.camel.processor |
A collection of Processor
implementations which are used to implement the
Enterprise Integration Patterns
|
org.apache.camel.processor.aggregate |
Helper classes for the Aggregator pattern.
|
org.apache.camel.spi |
Service Provider Interfaces used by the Camel runtime which are plugin strategies.
|
org.apache.camel.util |
Utility classes used by the core of Camel.
|
Modifier and Type | Method and Description |
---|---|
Message |
Message.copy()
Creates a copy of this message so that it can be used and possibly
modified further in another exchange.
|
Message |
Exchange.getIn()
Returns the inbound request message
|
Message |
Exchange.getMessage()
Returns the current message
|
Message |
Exchange.getOut()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
Message.copyAttachments(Message message)
Copies the attachments of the other message into this message
|
void |
Message.copyFrom(Message message)
Copies the contents of the other message into this message
If you need to do a copy and then set a new body,
then use
copyFromWithNewBody(Message, Object) method instead. |
void |
Message.copyFromWithNewBody(Message message,
Object newBody)
|
void |
Exchange.setIn(Message in)
Sets the inbound message instance
|
void |
Exchange.setMessage(Message message)
Replace the current message instance.
|
void |
Exchange.setOut(Message out)
Deprecated.
|
Constructor and Description |
---|
InvalidPayloadException(Exchange exchange,
Class<?> type,
Message message) |
InvalidPayloadException(Exchange exchange,
Class<?> type,
Message message,
Throwable cause) |
InvalidPayloadRuntimeException(Exchange exchange,
Class<?> type,
Message message) |
InvalidPayloadRuntimeException(Exchange exchange,
Class<?> type,
Message message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
T |
ExpressionClause.inMessage(Function<Message,Object> function)
A functional expression of an inbound message
|
static Expression |
ExpressionBuilder.inMessageExpression(Function<Message,Object> function)
Returns a functional expression for the IN message
|
T |
AggregationStrategyClause.message(BiFunction<Message,Message,Message> function)
Define an aggregation strategy which targets Exchanges In Message.
|
T |
AggregationStrategyClause.message(BiFunction<Message,Message,Message> function)
Define an aggregation strategy which targets Exchanges In Message.
|
T |
AggregationStrategyClause.message(BiFunction<Message,Message,Message> function)
Define an aggregation strategy which targets Exchanges In Message.
|
T |
ProcessClause.message(Consumer<Message> consumer)
Define a
Processor which targets the Exchange In Message. |
T |
ExpressionClause.message(Function<Message,Object> function)
A functional expression of an inbound message
|
T |
PredicateClause.message(Predicate<Message> predicate)
Define a
Predicate which targets the Exchange In Message. |
static Expression |
ExpressionBuilder.messageExpression(Function<Message,Object> function)
Returns a functional expression for the IN message
|
T |
ExpressionClause.outMessage(Function<Message,Object> function)
A functional expression of an outbound message
|
static Expression |
ExpressionBuilder.outMessageExpression(Function<Message,Object> function)
Returns a functional expression for the OUT message
|
Modifier and Type | Method and Description |
---|---|
void |
DomResultHandler.setBody(Message in) |
void |
StringResultHandler.setBody(Message in) |
void |
StreamResultHandler.setBody(Message in) |
void |
FileResultHandler.setBody(Message in) |
void |
ResultHandler.setBody(Message in) |
Modifier and Type | Class and Description |
---|---|
class |
GenericFileMessage<T>
Generic file message
|
Modifier and Type | Method and Description |
---|---|
void |
GenericFileEndpoint.configureMessage(GenericFile<T> file,
Message message)
Configures the given message with the file which sets the body to the
file object.
|
void |
GenericFileMessage.copyFrom(Message that) |
String |
GenericFileEndpoint.getGeneratedFileName(Message message)
Return the file name that will be auto-generated for the given message if
none is provided
|
protected void |
FileConsumer.updateFileHeaders(GenericFile<File> file,
Message message) |
protected abstract void |
GenericFileConsumer.updateFileHeaders(GenericFile<T> file,
Message message)
Updates the information on
Message after we have acquired read-lock and
can begin process the file. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultMessage
The default implementation of
Message
This implementation uses a CaseInsensitiveMap storing the headers. |
class |
MessageSupport
A base class for implementation inheritance providing the core
Message body handling features but letting the derived class deal
with headers. |
Modifier and Type | Method and Description |
---|---|
Message |
MessageSupport.copy() |
Message |
DefaultExchange.getIn() |
Message |
DefaultExchange.getMessage() |
Message |
DefaultUnitOfWork.getOriginalInMessage() |
Message |
DefaultExchange.getOut() |
abstract Message |
MessageSupport.newInstance()
Returns a new instance
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultExchange.configureMessage(Message message)
Configures the message after it has been set on the exchange
|
void |
MessageSupport.copyAttachments(Message that) |
void |
MessageSupport.copyFrom(Message that) |
void |
MessageSupport.copyFromWithNewBody(Message that,
Object newBody) |
void |
DefaultExchange.setIn(Message in) |
void |
DefaultExchange.setMessage(Message message) |
void |
DefaultExchange.setOut(Message out) |
Modifier and Type | Method and Description |
---|---|
void |
ProcessorTransformer.transform(Message message,
DataType from,
DataType to)
Perform data transformation with specified from/to type using Processor.
|
void |
DataFormatTransformer.transform(Message message,
DataType from,
DataType to)
Perform data transformation with specified from/to type using DataFormat.
|
Modifier and Type | Method and Description |
---|---|
void |
ProcessorValidator.validate(Message message,
DataType type)
Perform content validation with specified type using Processor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
DefaultExchangeFormatter.getBodyAsString(Message message) |
protected String |
DefaultExchangeFormatter.getBodyTypeAsString(Message message) |
Modifier and Type | Method and Description |
---|---|
Message |
GroupedMessageAggregationStrategy.getValue(Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
Message |
UnitOfWork.getOriginalInMessage()
Gets the original IN
Message this Unit of Work was started with. |
Modifier and Type | Method and Description |
---|---|
abstract void |
Transformer.transform(Message message,
DataType from,
DataType to)
Perform data transformation with specified from/to type.
|
abstract void |
Validator.validate(Message message,
DataType type)
Perform data validation with specified type.
|
Modifier and Type | Method and Description |
---|---|
static Message |
ExchangeHelper.getOriginalInMessage(Exchange exchange)
Gets the original IN
Message this Unit of Work was started with. |
static Message |
ExchangeHelper.getResultMessage(Exchange exchange)
Returns the message where to write results in an
exchange-pattern-sensitive way.
|
Modifier and Type | Method and Description |
---|---|
static void |
MessageHelper.copyHeaders(Message source,
Message target,
boolean override)
Copies the headers from the source to the target message.
|
static void |
MessageHelper.copyHeaders(Message source,
Message target,
HeaderFilterStrategy strategy,
boolean override)
Copies the headers from the source to the target message.
|
static String |
MessageHelper.dumpAsXml(Message message)
Dumps the message as a generic XML structure.
|
static String |
MessageHelper.dumpAsXml(Message message,
boolean includeBody)
Dumps the message as a generic XML structure.
|
static String |
MessageHelper.dumpAsXml(Message message,
boolean includeBody,
int indent)
Dumps the message as a generic XML structure.
|
static String |
MessageHelper.dumpAsXml(Message message,
boolean includeBody,
int indent,
boolean allowStreams,
boolean allowFiles,
int maxChars)
Dumps the message as a generic XML structure.
|
static String |
MessageHelper.extractBodyAsString(Message message)
Extracts the given body and returns it as a String, that can be used for
logging etc.
|
static String |
MessageHelper.extractBodyForLogging(Message message)
Extracts the body for logging purpose.
|
static String |
MessageHelper.extractBodyForLogging(Message message,
String prepend)
Extracts the body for logging purpose.
|
static String |
MessageHelper.extractBodyForLogging(Message message,
String prepend,
boolean allowStreams,
boolean allowFiles)
Extracts the body for logging purpose.
|
static String |
MessageHelper.extractBodyForLogging(Message message,
String prepend,
boolean allowStreams,
boolean allowFiles,
int maxChars)
Extracts the body for logging purpose.
|
static String |
MessageHelper.extractValueForLogging(Object value,
Message message)
Extracts the value for logging purpose.
|
static String |
MessageHelper.extractValueForLogging(Object obj,
Message message,
String prepend,
boolean allowStreams,
boolean allowFiles,
int maxChars)
Extracts the value for logging purpose.
|
static String |
MessageHelper.getBodyTypeName(Message message)
Gets the given body class type name as a String.
|
static String |
MessageHelper.getContentEncoding(Message message)
Returns the MIME content encoding on the message or null if none
defined
|
static String |
MessageHelper.getContentType(Message message)
Returns the MIME content type on the message or null if none
defined
|
static <T> T |
ExchangeHelper.getMandatoryHeader(Message message,
String headerName,
Class<T> type)
Gets the mandatory inbound header of the correct type
|
static boolean |
GZIPHelper.isGzip(Message message) |
static void |
ExchangeHelper.replaceMessage(Exchange exchange,
Message newMessage,
boolean outOnly)
Replaces the existing message with the new message
|
static void |
MessageHelper.resetStreamCache(Message message)
If the message body contains a
StreamCache instance, reset the
cache to enable reading from it again. |
Apache Camel