The body of an exchange should not be required when not performing an add or
update to the cache
------------------------------------------------------------------------------------------------
Key: CAMEL-3771
URL: https://issues.apache.org/jira/browse/CAMEL-3771
Project: Camel
Issue Type: Improvement
Components: camel-cache
Affects Versions: 2.3.0
Reporter: Ulrich Merckx
When not performing an add or update to the cache, the body of the exchange
should of no matter and should be nullable.
At the moment this is not possible when for example performing an operation
such as get. It is now required to pass for example an empty string in the body
of the exchange, which is kind of useless.
The attached patch implements the altered behaviour where the body may be
nullable when not performing add or update. A CacheException will be thrown
when the body is required for an operation but the content of the body is null.
The patch contains the patched CacheProducer and the tests in CacheProducerTest.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira