DSL: Add enrichHeaders(Map) EIP-method

* Introduce `MapBuilder` and its custom inheritor - `MailHeadersBuilder`
* Add `HeaderEnricherSpec.headers(MapBuilder)` and `.headers(Map)`
* Change `MailTests` to use new `Mail.headers()` and new `IntegrationFlowDefinition.enrichHeaders(MapBuilder)`
* Change `mailapi` dependency to the IO's `javax.mail`

Polishing - Add headerExpressions()

More Polishing - Add Configurer

Polishing - PR Comments

- Move MapBuilderConfigurer to superclass.
- Move PropertiesBuilderConfigurer into PropertiesBuilder.
This commit is contained in:
Artem Bilan
2014-08-27 14:08:37 +03:00
committed by Gary Russell
parent 238c1f06b9
commit 4b5bbb6412
12 changed files with 270 additions and 18 deletions

View File

@@ -92,7 +92,7 @@ dependencies {
testRuntime("org.apache.activemq:activemq-kahadb-store:$activeMqVersion") {
exclude group: "org.springframework"
}
testRuntime "com.sun.mail:mailapi:$mailVersion"
testRuntime "com.sun.mail:javax.mail:$mailVersion"
testRuntime "com.sun.mail:smtp:$mailVersion"
testRuntime "com.sun.mail:pop3:$mailVersion"
testRuntime "com.sun.mail:imap:$mailVersion"