ServerWebExchange.Builder .
| Modifier and Type | Class and Description |
|---|---|
| private static class | DefaultServerWebExchangeBuilder.MutativeDecorator
An immutable wrapper of an exchange returning property overrides -- given to the constructor -- or original values otherwise. |
| Modifier and Type | Field and Description |
|---|---|
| private final ServerWebExchange | |
| private Mono | |
| private ServerHttpRequest | |
| private ServerHttpResponse |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| delegate | back to summary |
|---|---|
| private final ServerWebExchange delegate | |
| principalMono | back to summary |
|---|---|
| private Mono<Principal> principalMono
| |
| request | back to summary |
|---|---|
| private ServerHttpRequest request
| |
| response | back to summary |
|---|---|
| private ServerHttpResponse response
| |
| DefaultServerWebExchangeBuilder | back to summary |
|---|---|
| pack-priv DefaultServerWebExchangeBuilder(ServerWebExchange delegate) | |
| build | back to summary |
|---|---|
| public ServerWebExchange build() Implements org. Doc from org. Build a
| |
| principal | back to summary |
|---|---|
| public ServerWebExchange. Implements org. Doc from org. Set the
| |
| request | back to summary |
|---|---|
| public ServerWebExchange. Implements org. Doc from org. Configure a consumer to modify the current request using a builder. Effectively this:
exchange.mutate().request(builder -> builder.method(HttpMethod.PUT));
// vs...
ServerHttpRequest request = exchange.getRequest().mutate()
.method(HttpMethod.PUT)
.build();
exchange.mutate().request(request);
| |
| request | back to summary |
|---|---|
| public ServerWebExchange. Implements org. Doc from org. Set the request to use especially when there is a need to override
| |
| response | back to summary |
|---|---|
| public ServerWebExchange. Implements org. Doc from org. Set the response to use.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Mono | |
| private final ServerHttpRequest | |
| private final ServerHttpResponse |
| Access | Constructor and Description |
|---|---|
| public | MutativeDecorator(ServerWebExchange delegate, ServerHttpRequest request, ServerHttpResponse response, Mono<Principal> principalMono)
|
| Modifier and Type | Method and Description |
|---|---|
| public <T extends Principal> Mono | getPrincipal()
Overrides org. Implements org. |
| public ServerHttpRequest | getRequest()
Overrides org. Implements org. |
| public ServerHttpResponse | getResponse()
Overrides org. Implements org. |
| principalMono | back to summary |
|---|---|
| private final Mono<Principal> principalMono
| |
| request | back to summary |
|---|---|
| private final ServerHttpRequest request
| |
| response | back to summary |
|---|---|
| private final ServerHttpResponse response
| |
| MutativeDecorator | back to summary |
|---|---|
| public MutativeDecorator(ServerWebExchange delegate, ServerHttpRequest request, ServerHttpResponse response, Mono<Principal> principalMono) | |
| getPrincipal | back to summary |
|---|---|
| public <T extends Principal> Mono Overrides org. Implements org. Doc from org. Return the authenticated user for the request, if any.
| |
| getRequest | back to summary |
|---|---|
| public ServerHttpRequest getRequest() Overrides org. Implements org. Doc from org. Return the current HTTP request.
| |
| getResponse | back to summary |
|---|---|
| public ServerHttpResponse getResponse() Overrides org. Implements org. Doc from org. Return the current HTTP response.
| |