private static class DefaultServerWebExchangeBuilder.MutativeDecorator extends ServerWebExchangeDecorator
ServerWebExchange.Builder
Modifier and Type | Field and Description |
---|---|
private <any> |
principalMono |
private ServerHttpRequest |
request |
private ServerHttpResponse |
response |
Constructor and Description |
---|
MutativeDecorator(ServerWebExchange delegate,
ServerHttpRequest request,
ServerHttpResponse response,
<any> principalMono) |
Modifier and Type | Method and Description |
---|---|
<T extends java.security.Principal> |
getPrincipal()
Return the authenticated user for the request, if any.
|
ServerHttpRequest |
getRequest()
Return the current HTTP request.
|
ServerHttpResponse |
getResponse()
Return the current HTTP response.
|
checkNotModified, checkNotModified, checkNotModified, getAttribute, getAttributes, getDelegate, getFormData, getRequestParams, getSession, isNotModified, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
mutate
private final ServerHttpRequest request
private final ServerHttpResponse response
private final <any> principalMono
public MutativeDecorator(ServerWebExchange delegate, ServerHttpRequest request, ServerHttpResponse response, <any> principalMono)
public ServerHttpRequest getRequest()
ServerWebExchange
getRequest
in interface ServerWebExchange
getRequest
in class ServerWebExchangeDecorator
public ServerHttpResponse getResponse()
ServerWebExchange
getResponse
in interface ServerWebExchange
getResponse
in class ServerWebExchangeDecorator
public <T extends java.security.Principal> <any> getPrincipal()
ServerWebExchange
getPrincipal
in interface ServerWebExchange
getPrincipal
in class ServerWebExchangeDecorator