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.
|
addUrlTransformer, checkNotModified, checkNotModified, checkNotModified, getApplicationContext, getAttributes, getDelegate, getFormData, getLocaleContext, getMultipartData, getSession, isNotModified, toString, transformUrl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getAttributeOrDefault, getRequiredAttribute, mutate
@Nullable private final ServerHttpRequest request
@Nullable private final ServerHttpResponse response
@Nullable private final <any> principalMono
public MutativeDecorator(ServerWebExchange delegate, @Nullable ServerHttpRequest request, @Nullable ServerHttpResponse response, @Nullable <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