1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+
16
17
package org .springframework .web .server ;
17
18
18
19
import java .security .Principal ;
25
26
import org .springframework .util .Assert ;
26
27
27
28
/**
28
- * Package private implementation of {@link ServerWebExchange.Builder}.
29
+ * Package- private implementation of {@link ServerWebExchange.Builder}.
29
30
*
30
31
* @author Rossen Stoyanchev
31
32
* @since 5.0
@@ -42,7 +43,7 @@ class DefaultServerWebExchangeBuilder implements ServerWebExchange.Builder {
42
43
43
44
44
45
DefaultServerWebExchangeBuilder (ServerWebExchange delegate ) {
45
- Assert .notNull (delegate , "'delegate' is required. " );
46
+ Assert .notNull (delegate , "Delegate is required" );
46
47
this .delegate = delegate ;
47
48
}
48
49
@@ -90,7 +91,6 @@ private static class MutativeDecorator extends ServerWebExchangeDecorator {
90
91
91
92
private final Mono <Principal > principalMono ;
92
93
93
-
94
94
public MutativeDecorator (ServerWebExchange delegate , ServerHttpRequest request ,
95
95
ServerHttpResponse response , Mono <Principal > principalMono ) {
96
96
@@ -100,7 +100,6 @@ public MutativeDecorator(ServerWebExchange delegate, ServerHttpRequest request,
100
100
this .principalMono = principalMono ;
101
101
}
102
102
103
-
104
103
@ Override
105
104
public ServerHttpRequest getRequest () {
106
105
return (this .request != null ? this .request : getDelegate ().getRequest ());
0 commit comments