public final class DefaultExchange extends Object implements org.apache.camel.ExtendedExchange
Exchange.ACCEPT_CONTENT_TYPE, AGGREGATED_COLLECTION_GUARD, AGGREGATED_COMPLETED_BY, AGGREGATED_CORRELATION_KEY, AGGREGATED_SIZE, AGGREGATED_TIMEOUT, AGGREGATION_COMPLETE_ALL_GROUPS, AGGREGATION_COMPLETE_ALL_GROUPS_INCLUSIVE, AGGREGATION_COMPLETE_CURRENT_GROUP, AGGREGATION_STRATEGY, ASYNC_WAIT, AUTHENTICATION, AUTHENTICATION_FAILURE_POLICY_ID, BATCH_COMPLETE, BATCH_INDEX, BATCH_SIZE, BEAN_METHOD_NAME, BINDING, BREADCRUMB_ID, CHARSET_NAME, CIRCUIT_BREAKER_STATE, CLAIM_CHECK_REPOSITORY, COMPILE_SCRIPT, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, COOKIE_HANDLER, CORRELATION_ID, CREATED_TIMESTAMP, DATASET_INDEX, DEFAULT_CHARSET_PROPERTY, DESTINATION_OVERRIDE_URL, DISABLE_HTTP_STREAM_CACHE, DOCUMENT_BUILDER_FACTORY, DUPLICATE_MESSAGE, ERRORHANDLER_CIRCUIT_DETECTED, ERRORHANDLER_HANDLED, EVALUATE_EXPRESSION_RESULT, EXCEPTION_CAUGHT, EXCEPTION_HANDLED, EXTERNAL_REDELIVERED, FAILURE_ENDPOINT, FAILURE_HANDLED, FAILURE_ROUTE_ID, FATAL_FALLBACK_ERROR_HANDLER, FILE_CONTENT_TYPE, FILE_LAST_MODIFIED, FILE_LENGTH, FILE_LOCAL_WORK_PATH, FILE_LOCK_CHANNEL_FILE, FILE_LOCK_EXCLUSIVE_LOCK, FILE_LOCK_FILE_ACQUIRED, FILE_LOCK_FILE_NAME, FILE_LOCK_RANDOM_ACCESS_FILE, FILE_NAME, FILE_NAME_CONSUMED, FILE_NAME_ONLY, FILE_NAME_PRODUCED, FILE_PARENT, FILE_PATH, FILTER_MATCHED, FILTER_NON_XML_CHARS, GROUPED_EXCHANGE, HTTP_BASE_URI, HTTP_CHARACTER_ENCODING, HTTP_CHUNKED, HTTP_HOST, HTTP_METHOD, HTTP_PATH, HTTP_PORT, HTTP_PROTOCOL_VERSION, HTTP_QUERY, HTTP_RAW_QUERY, HTTP_RESPONSE_CODE, HTTP_RESPONSE_TEXT, HTTP_SCHEME, HTTP_SERVLET_REQUEST, HTTP_SERVLET_RESPONSE, HTTP_URI, HTTP_URL, INTERCEPT_SEND_TO_ENDPOINT_WHEN_MATCHED, INTERCEPTED_ENDPOINT, INTERRUPTED, LANGUAGE_SCRIPT, LOG_DEBUG_BODY_MAX_CHARS, LOG_DEBUG_BODY_STREAMS, LOG_EIP_NAME, LOOP_INDEX, LOOP_SIZE, MAXIMUM_CACHE_POOL_SIZE, MAXIMUM_ENDPOINT_CACHE_SIZE, MAXIMUM_SIMPLE_CACHE_SIZE, MAXIMUM_TRANSFORMER_CACHE_SIZE, MAXIMUM_VALIDATOR_CACHE_SIZE, MESSAGE_HISTORY, MESSAGE_HISTORY_HEADER_FORMAT, MESSAGE_HISTORY_OUTPUT_FORMAT, MULTICAST_COMPLETE, MULTICAST_INDEX, NOTIFY_EVENT, ON_COMPLETION, OVERRULE_FILE_NAME, PARENT_UNIT_OF_WORK, RECEIVED_TIMESTAMP, RECIPIENT_LIST_ENDPOINT, REDELIVERED, REDELIVERY_COUNTER, REDELIVERY_DELAY, REDELIVERY_EXHAUSTED, REDELIVERY_MAX_COUNTER, REST_HTTP_QUERY, REST_HTTP_URI, REUSE_SCRIPT_ENGINE, ROLLBACK_ONLY, ROLLBACK_ONLY_LAST, ROUTE_STOP, SAGA_LONG_RUNNING_ACTION, SAXPARSER_FACTORY, SCHEDULER_POLLED_MESSAGES, SKIP_GZIP_ENCODING, SKIP_WWW_FORM_URLENCODED, SLIP_ENDPOINT, SLIP_PRODUCER, SOAP_ACTION, SPLIT_COMPLETE, SPLIT_INDEX, SPLIT_SIZE, STEP_ID, STREAM_CACHE_UNIT_OF_WORK, TIMER_COUNTER, TIMER_FIRED_TIME, TIMER_NAME, TIMER_PERIOD, TIMER_TIME, TO_ENDPOINT, TRACE_EVENT, TRACE_EVENT_EXCHANGE, TRACE_EVENT_NODE_ID, TRACE_EVENT_TIMESTAMP, TRACING_HEADER_FORMAT, TRACING_OUTPUT_FORMAT, TRANSFER_ENCODING, TRY_ROUTE_BLOCK, UNIT_OF_WORK_EXHAUSTED, UNIT_OF_WORK_PROCESS_SYNC, XSLT_ERROR, XSLT_FATAL_ERROR, XSLT_FILE_NAME, XSLT_WARNING| Constructor and Description |
|---|
DefaultExchange(org.apache.camel.CamelContext context) |
DefaultExchange(org.apache.camel.CamelContext context,
org.apache.camel.ExchangePattern pattern) |
DefaultExchange(org.apache.camel.Endpoint fromEndpoint) |
DefaultExchange(org.apache.camel.Endpoint fromEndpoint,
org.apache.camel.ExchangePattern pattern) |
DefaultExchange(org.apache.camel.Exchange parent) |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.apache.camel.Exchange> |
adapt(Class<T> type) |
void |
addOnCompletion(org.apache.camel.spi.Synchronization onCompletion) |
protected void |
configureMessage(org.apache.camel.Message message)
Configures the message after it has been set on the exchange
|
boolean |
containsOnCompletion(org.apache.camel.spi.Synchronization onCompletion) |
org.apache.camel.Exchange |
copy() |
protected String |
createExchangeId() |
org.apache.camel.CamelContext |
getContext() |
long |
getCreated() |
Boolean |
getErrorHandlerHandled() |
Exception |
getException() |
<T> T |
getException(Class<T> type) |
String |
getExchangeId() |
org.apache.camel.Endpoint |
getFromEndpoint() |
String |
getFromRouteId() |
String |
getHistoryNodeId() |
String |
getHistoryNodeLabel() |
org.apache.camel.Message |
getIn() |
<T> T |
getIn(Class<T> type) |
org.apache.camel.Message |
getMessage() |
<T> T |
getMessage(Class<T> type) |
org.apache.camel.Message |
getOut() |
<T> T |
getOut(Class<T> type) |
org.apache.camel.ExchangePattern |
getPattern() |
Map<String,Object> |
getProperties() |
Object |
getProperty(String name) |
<T> T |
getProperty(String name,
Class<T> type) |
Object |
getProperty(String name,
Object defaultValue) |
<T> T |
getProperty(String name,
Object defaultValue,
Class<T> type) |
org.apache.camel.spi.UnitOfWork |
getUnitOfWork() |
List<org.apache.camel.spi.Synchronization> |
handoverCompletions() |
void |
handoverCompletions(org.apache.camel.Exchange target) |
boolean |
hasOut() |
boolean |
hasProperties() |
boolean |
isErrorHandlerHandled() |
boolean |
isExternalRedelivered() |
boolean |
isFailed() |
boolean |
isInterrupted() |
boolean |
isNotifyEvent() |
boolean |
isRedeliveryExhausted() |
boolean |
isRollbackOnly() |
boolean |
isRollbackOnlyLast() |
boolean |
isRouteStop() |
boolean |
isTransacted() |
boolean |
removeProperties(String pattern) |
boolean |
removeProperties(String pattern,
String... excludePatterns) |
Object |
removeProperty(String name) |
void |
setErrorHandlerHandled(Boolean errorHandlerHandled) |
void |
setException(Throwable t) |
void |
setExchangeId(String id) |
void |
setFromEndpoint(org.apache.camel.Endpoint fromEndpoint) |
void |
setFromRouteId(String fromRouteId) |
void |
setHistoryNodeId(String historyNodeId) |
void |
setHistoryNodeLabel(String historyNodeLabel) |
void |
setIn(org.apache.camel.Message in) |
void |
setInterruptable(boolean interruptable) |
void |
setInterrupted(boolean interrupted) |
void |
setMessage(org.apache.camel.Message message) |
void |
setNotifyEvent(boolean notifyEvent) |
void |
setOut(org.apache.camel.Message out) |
void |
setPattern(org.apache.camel.ExchangePattern pattern) |
void |
setProperties(Map<String,Object> properties) |
void |
setProperty(String name,
Object value) |
void |
setRedeliveryExhausted(boolean redeliveryExhausted) |
void |
setRollbackOnly(boolean rollbackOnly) |
void |
setRollbackOnlyLast(boolean rollbackOnlyLast) |
void |
setRouteStop(boolean routeStop) |
void |
setTransacted(boolean transacted) |
void |
setUnitOfWork(org.apache.camel.spi.UnitOfWork unitOfWork) |
String |
toString() |
public DefaultExchange(org.apache.camel.CamelContext context)
public DefaultExchange(org.apache.camel.CamelContext context,
org.apache.camel.ExchangePattern pattern)
public DefaultExchange(org.apache.camel.Exchange parent)
public DefaultExchange(org.apache.camel.Endpoint fromEndpoint)
public DefaultExchange(org.apache.camel.Endpoint fromEndpoint,
org.apache.camel.ExchangePattern pattern)
public long getCreated()
getCreated in interface org.apache.camel.Exchangepublic org.apache.camel.Exchange copy()
copy in interface org.apache.camel.Exchangepublic org.apache.camel.CamelContext getContext()
getContext in interface org.apache.camel.Exchangepublic Object getProperty(String name)
getProperty in interface org.apache.camel.Exchangepublic Object getProperty(String name, Object defaultValue)
getProperty in interface org.apache.camel.Exchangepublic <T> T getProperty(String name, Class<T> type)
getProperty in interface org.apache.camel.Exchangepublic <T> T getProperty(String name, Object defaultValue, Class<T> type)
getProperty in interface org.apache.camel.Exchangepublic void setProperty(String name, Object value)
setProperty in interface org.apache.camel.Exchangepublic void setProperties(Map<String,Object> properties)
setProperties in interface org.apache.camel.ExtendedExchangepublic Object removeProperty(String name)
removeProperty in interface org.apache.camel.Exchangepublic boolean removeProperties(String pattern)
removeProperties in interface org.apache.camel.Exchangepublic boolean removeProperties(String pattern, String... excludePatterns)
removeProperties in interface org.apache.camel.Exchangepublic Map<String,Object> getProperties()
getProperties in interface org.apache.camel.Exchangepublic boolean hasProperties()
hasProperties in interface org.apache.camel.Exchangepublic org.apache.camel.Message getIn()
getIn in interface org.apache.camel.Exchangepublic <T> T getIn(Class<T> type)
getIn in interface org.apache.camel.Exchangepublic void setIn(org.apache.camel.Message in)
setIn in interface org.apache.camel.Exchangepublic org.apache.camel.Message getOut()
getOut in interface org.apache.camel.Exchangepublic <T> T getOut(Class<T> type)
getOut in interface org.apache.camel.Exchangepublic boolean hasOut()
hasOut in interface org.apache.camel.Exchangepublic void setOut(org.apache.camel.Message out)
setOut in interface org.apache.camel.Exchangepublic org.apache.camel.Message getMessage()
getMessage in interface org.apache.camel.Exchangepublic <T> T getMessage(Class<T> type)
getMessage in interface org.apache.camel.Exchangepublic void setMessage(org.apache.camel.Message message)
setMessage in interface org.apache.camel.Exchangepublic Exception getException()
getException in interface org.apache.camel.Exchangepublic <T> T getException(Class<T> type)
getException in interface org.apache.camel.Exchangepublic void setException(Throwable t)
setException in interface org.apache.camel.Exchangepublic <T extends org.apache.camel.Exchange> T adapt(Class<T> type)
adapt in interface org.apache.camel.Exchangepublic org.apache.camel.ExchangePattern getPattern()
getPattern in interface org.apache.camel.Exchangepublic void setPattern(org.apache.camel.ExchangePattern pattern)
setPattern in interface org.apache.camel.Exchangepublic org.apache.camel.Endpoint getFromEndpoint()
getFromEndpoint in interface org.apache.camel.Exchangepublic void setFromEndpoint(org.apache.camel.Endpoint fromEndpoint)
setFromEndpoint in interface org.apache.camel.ExtendedExchangepublic String getFromRouteId()
getFromRouteId in interface org.apache.camel.Exchangepublic void setFromRouteId(String fromRouteId)
setFromRouteId in interface org.apache.camel.ExtendedExchangepublic String getExchangeId()
getExchangeId in interface org.apache.camel.Exchangepublic void setExchangeId(String id)
setExchangeId in interface org.apache.camel.Exchangepublic boolean isFailed()
isFailed in interface org.apache.camel.Exchangepublic boolean isTransacted()
isTransacted in interface org.apache.camel.Exchangepublic void setTransacted(boolean transacted)
setTransacted in interface org.apache.camel.ExtendedExchangepublic boolean isRouteStop()
isRouteStop in interface org.apache.camel.Exchangepublic void setRouteStop(boolean routeStop)
setRouteStop in interface org.apache.camel.Exchangepublic boolean isExternalRedelivered()
isExternalRedelivered in interface org.apache.camel.Exchangepublic boolean isRollbackOnly()
isRollbackOnly in interface org.apache.camel.Exchangepublic void setRollbackOnly(boolean rollbackOnly)
setRollbackOnly in interface org.apache.camel.Exchangepublic boolean isRollbackOnlyLast()
isRollbackOnlyLast in interface org.apache.camel.Exchangepublic void setRollbackOnlyLast(boolean rollbackOnlyLast)
setRollbackOnlyLast in interface org.apache.camel.Exchangepublic org.apache.camel.spi.UnitOfWork getUnitOfWork()
getUnitOfWork in interface org.apache.camel.Exchangepublic void setUnitOfWork(org.apache.camel.spi.UnitOfWork unitOfWork)
setUnitOfWork in interface org.apache.camel.ExtendedExchangepublic void addOnCompletion(org.apache.camel.spi.Synchronization onCompletion)
addOnCompletion in interface org.apache.camel.ExtendedExchangepublic boolean containsOnCompletion(org.apache.camel.spi.Synchronization onCompletion)
containsOnCompletion in interface org.apache.camel.ExtendedExchangepublic void handoverCompletions(org.apache.camel.Exchange target)
handoverCompletions in interface org.apache.camel.ExtendedExchangepublic List<org.apache.camel.spi.Synchronization> handoverCompletions()
handoverCompletions in interface org.apache.camel.ExtendedExchangepublic String getHistoryNodeId()
getHistoryNodeId in interface org.apache.camel.ExtendedExchangepublic void setHistoryNodeId(String historyNodeId)
setHistoryNodeId in interface org.apache.camel.ExtendedExchangepublic String getHistoryNodeLabel()
getHistoryNodeLabel in interface org.apache.camel.ExtendedExchangepublic void setHistoryNodeLabel(String historyNodeLabel)
setHistoryNodeLabel in interface org.apache.camel.ExtendedExchangepublic boolean isNotifyEvent()
isNotifyEvent in interface org.apache.camel.ExtendedExchangepublic void setNotifyEvent(boolean notifyEvent)
setNotifyEvent in interface org.apache.camel.ExtendedExchangepublic boolean isInterrupted()
isInterrupted in interface org.apache.camel.ExtendedExchangepublic void setInterrupted(boolean interrupted)
setInterrupted in interface org.apache.camel.ExtendedExchangepublic void setInterruptable(boolean interruptable)
setInterruptable in interface org.apache.camel.ExtendedExchangepublic boolean isRedeliveryExhausted()
isRedeliveryExhausted in interface org.apache.camel.ExtendedExchangepublic void setRedeliveryExhausted(boolean redeliveryExhausted)
setRedeliveryExhausted in interface org.apache.camel.ExtendedExchangepublic Boolean getErrorHandlerHandled()
getErrorHandlerHandled in interface org.apache.camel.ExtendedExchangepublic boolean isErrorHandlerHandled()
isErrorHandlerHandled in interface org.apache.camel.ExtendedExchangepublic void setErrorHandlerHandled(Boolean errorHandlerHandled)
setErrorHandlerHandled in interface org.apache.camel.ExtendedExchangeprotected void configureMessage(org.apache.camel.Message message)
protected String createExchangeId()
Apache Camel