INT-4309 Http Header Mapper VarArgs Instead of []
JIRA: https://jira.spring.io/browse/INT-4309 More convenient for Java Config. *Upgrade to Reactor 3.1 B-S, Reactor-Netty 0.7 B-S and Security 5.0 B-S. Otherwise we are not compatible with the latest SF
This commit is contained in:
committed by
Artem Bilan
parent
47003077cc
commit
6c62af53f4
@@ -368,9 +368,11 @@ public class DefaultHttpHeaderMapper implements HeaderMapper<HttpHeaders>, BeanF
|
||||
* mapping outbound endpoint request headers.
|
||||
* @param excludedOutboundStandardRequestHeaderNames the excludedStandardRequestHeaderNames to set
|
||||
*/
|
||||
public void setExcludedOutboundStandardRequestHeaderNames(String[] excludedOutboundStandardRequestHeaderNames) {
|
||||
public void setExcludedOutboundStandardRequestHeaderNames(String... excludedOutboundStandardRequestHeaderNames) {
|
||||
Assert.notNull(excludedOutboundStandardRequestHeaderNames,
|
||||
"'excludedOutboundStandardRequestHeaderNames' must not be null");
|
||||
Assert.noNullElements(excludedOutboundStandardRequestHeaderNames,
|
||||
"'excludedOutboundStandardRequestHeaderNames' must not have null elements");
|
||||
this.excludedOutboundStandardRequestHeaderNames = Arrays.copyOf(excludedOutboundStandardRequestHeaderNames,
|
||||
excludedOutboundStandardRequestHeaderNames.length);
|
||||
}
|
||||
@@ -380,9 +382,11 @@ public class DefaultHttpHeaderMapper implements HeaderMapper<HttpHeaders>, BeanF
|
||||
* mapping inbound endpoint response headers.
|
||||
* @param excludedInboundStandardResponseHeaderNames the excludedStandardResponseHeaderNames to set
|
||||
*/
|
||||
public void setExcludedInboundStandardResponseHeaderNames(String[] excludedInboundStandardResponseHeaderNames) {
|
||||
public void setExcludedInboundStandardResponseHeaderNames(String... excludedInboundStandardResponseHeaderNames) {
|
||||
Assert.notNull(excludedInboundStandardResponseHeaderNames,
|
||||
"'excludedInboundStandardResponseHeaderNames' must not be null");
|
||||
Assert.noNullElements(excludedInboundStandardResponseHeaderNames,
|
||||
"'excludedInboundStandardResponseHeaderNames' must not have null elements");
|
||||
this.excludedInboundStandardResponseHeaderNames = Arrays.copyOf(excludedInboundStandardResponseHeaderNames,
|
||||
excludedInboundStandardResponseHeaderNames.length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user