public final class DefaultExchange extends Object implements org.apache.camel.Exchange
Exchange
Modifier and Type | Field and Description |
---|---|
protected org.apache.camel.CamelContext |
context |
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 |
---|---|
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() |
protected Map<String,Object> |
createProperties() |
protected Map<String,Object> |
createProperties(Map<String,Object> properties) |
org.apache.camel.CamelContext |
getContext() |
Date |
getCreated() |
Exception |
getException() |
<T> T |
getException(Class<T> type) |
String |
getExchangeId() |
org.apache.camel.Endpoint |
getFromEndpoint() |
String |
getFromRouteId() |
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 |
isExternalRedelivered() |
boolean |
isFailed() |
boolean |
isRollbackOnly() |
boolean |
isTransacted() |
boolean |
removeProperties(String pattern) |
boolean |
removeProperties(String pattern,
String... excludePatterns) |
Object |
removeProperty(String name) |
void |
setException(Throwable t) |
void |
setExchangeId(String id) |
void |
setFromEndpoint(org.apache.camel.Endpoint fromEndpoint) |
void |
setFromRouteId(String fromRouteId) |
void |
setIn(org.apache.camel.Message in) |
void |
setMessage(org.apache.camel.Message message) |
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 |
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 Date getCreated()
getCreated
in interface org.apache.camel.Exchange
public org.apache.camel.Exchange copy()
copy
in interface org.apache.camel.Exchange
public org.apache.camel.CamelContext getContext()
getContext
in interface org.apache.camel.Exchange
public Object getProperty(String name)
getProperty
in interface org.apache.camel.Exchange
public Object getProperty(String name, Object defaultValue)
getProperty
in interface org.apache.camel.Exchange
public <T> T getProperty(String name, Class<T> type)
getProperty
in interface org.apache.camel.Exchange
public <T> T getProperty(String name, Object defaultValue, Class<T> type)
getProperty
in interface org.apache.camel.Exchange
public void setProperty(String name, Object value)
setProperty
in interface org.apache.camel.Exchange
public Object removeProperty(String name)
removeProperty
in interface org.apache.camel.Exchange
public boolean removeProperties(String pattern)
removeProperties
in interface org.apache.camel.Exchange
public boolean removeProperties(String pattern, String... excludePatterns)
removeProperties
in interface org.apache.camel.Exchange
public Map<String,Object> getProperties()
getProperties
in interface org.apache.camel.Exchange
public boolean hasProperties()
hasProperties
in interface org.apache.camel.Exchange
public org.apache.camel.Message getIn()
getIn
in interface org.apache.camel.Exchange
public <T> T getIn(Class<T> type)
getIn
in interface org.apache.camel.Exchange
public void setIn(org.apache.camel.Message in)
setIn
in interface org.apache.camel.Exchange
public org.apache.camel.Message getOut()
getOut
in interface org.apache.camel.Exchange
public <T> T getOut(Class<T> type)
getOut
in interface org.apache.camel.Exchange
public boolean hasOut()
hasOut
in interface org.apache.camel.Exchange
public void setOut(org.apache.camel.Message out)
setOut
in interface org.apache.camel.Exchange
public org.apache.camel.Message getMessage()
getMessage
in interface org.apache.camel.Exchange
public <T> T getMessage(Class<T> type)
getMessage
in interface org.apache.camel.Exchange
public void setMessage(org.apache.camel.Message message)
setMessage
in interface org.apache.camel.Exchange
public Exception getException()
getException
in interface org.apache.camel.Exchange
public <T> T getException(Class<T> type)
getException
in interface org.apache.camel.Exchange
public void setException(Throwable t)
setException
in interface org.apache.camel.Exchange
public org.apache.camel.ExchangePattern getPattern()
getPattern
in interface org.apache.camel.Exchange
public void setPattern(org.apache.camel.ExchangePattern pattern)
setPattern
in interface org.apache.camel.Exchange
public org.apache.camel.Endpoint getFromEndpoint()
getFromEndpoint
in interface org.apache.camel.Exchange
public void setFromEndpoint(org.apache.camel.Endpoint fromEndpoint)
setFromEndpoint
in interface org.apache.camel.Exchange
public String getFromRouteId()
getFromRouteId
in interface org.apache.camel.Exchange
public void setFromRouteId(String fromRouteId)
setFromRouteId
in interface org.apache.camel.Exchange
public String getExchangeId()
getExchangeId
in interface org.apache.camel.Exchange
public void setExchangeId(String id)
setExchangeId
in interface org.apache.camel.Exchange
public boolean isFailed()
isFailed
in interface org.apache.camel.Exchange
public boolean isTransacted()
isTransacted
in interface org.apache.camel.Exchange
public Boolean isExternalRedelivered()
isExternalRedelivered
in interface org.apache.camel.Exchange
public boolean isRollbackOnly()
isRollbackOnly
in interface org.apache.camel.Exchange
public org.apache.camel.spi.UnitOfWork getUnitOfWork()
getUnitOfWork
in interface org.apache.camel.Exchange
public void setUnitOfWork(org.apache.camel.spi.UnitOfWork unitOfWork)
setUnitOfWork
in interface org.apache.camel.Exchange
public void addOnCompletion(org.apache.camel.spi.Synchronization onCompletion)
addOnCompletion
in interface org.apache.camel.Exchange
public boolean containsOnCompletion(org.apache.camel.spi.Synchronization onCompletion)
containsOnCompletion
in interface org.apache.camel.Exchange
public void handoverCompletions(org.apache.camel.Exchange target)
handoverCompletions
in interface org.apache.camel.Exchange
public List<org.apache.camel.spi.Synchronization> handoverCompletions()
handoverCompletions
in interface org.apache.camel.Exchange
protected void configureMessage(org.apache.camel.Message message)
protected String createExchangeId()
Apache Camel