Skip to content

Commit 51397ec

Browse files
garyrussellartembilan
authored andcommitted
Make updateNotPropagatedHeaders protected final
1 parent 5475474 commit 51397ec

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

spring-integration-core/src/main/java/org/springframework/integration/handler/AbstractMessageProducingHandler.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2017 the original author or authors.
2+
* Copyright 2014-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.
@@ -131,7 +131,15 @@ public void setNotPropagatedHeaders(String... headers) {
131131
updateNotPropagatedHeaders(headers, false);
132132
}
133133

134-
private void updateNotPropagatedHeaders(String[] headers, boolean merge) {
134+
/**
135+
* Set or replace not propagated headers. Exposed so that subclasses can set specific
136+
* headers in a constructor, since {@link #setNotPropagatedHeaders(String...)} is not
137+
* final.
138+
* @param headers Header patterns to not propagate.
139+
* @param merge true to merge with existing patterns; false to replace.
140+
* @since 5.0.2
141+
*/
142+
protected final void updateNotPropagatedHeaders(String[] headers, boolean merge) {
135143
Set<String> headerPatterns = new HashSet<>();
136144

137145
if (merge && this.notPropagatedHeaders != null) {

0 commit comments

Comments
 (0)