Skip to content

Commit 061dcb1

Browse files
hxc9artembilan
authored andcommitted
INT-4383 Expose errorChannel in EnricherSpec
JIRA: https://jira.spring.io/browse/INT-4383
1 parent 56ffed0 commit 061dcb1

File tree

1 file changed

+24
-1
lines changed
  • spring-integration-core/src/main/java/org/springframework/integration/dsl

1 file changed

+24
-1
lines changed

spring-integration-core/src/main/java/org/springframework/integration/dsl/EnricherSpec.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2017 the original author or authors.
2+
* Copyright 2016-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -42,6 +42,7 @@
4242
* @author Artem Bilan
4343
* @author Tim Ysewyn
4444
* @author Ian Bondoc
45+
* @author Alexis Hafner
4546
*
4647
* @since 5.0
4748
*/
@@ -96,6 +97,28 @@ public EnricherSpec replyChannel(String replyChannel) {
9697
return _this();
9798
}
9899

100+
/**
101+
* @param errorChannel the error channel.
102+
* @return the enricher spec.
103+
* @see ContentEnricher#setErrorChannel(MessageChannel)
104+
* @since 5.0.1
105+
*/
106+
public EnricherSpec errorChannel(MessageChannel errorChannel) {
107+
this.handler.setErrorChannel(errorChannel);
108+
return _this();
109+
}
110+
111+
/**
112+
* @param errorChannel the name of the error channel bean.
113+
* @return the enricher spec.
114+
* @see ContentEnricher#setErrorChannelName(String)
115+
* @since 5.0.1
116+
*/
117+
public EnricherSpec errorChannel(String errorChannel) {
118+
this.handler.setErrorChannelName(errorChannel);
119+
return _this();
120+
}
121+
99122
/**
100123
* @param requestTimeout the requestTimeout
101124
* @return the enricher spec.

0 commit comments

Comments
 (0)