File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
spring-integration-core/src/main/java/org/springframework/integration/dsl Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 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.
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.
You can’t perform that action at this time.
0 commit comments