public class DefaultServerWebExchange extends Object implements ServerWebExchange
ServerWebExchange.| Constructor and Description |
|---|
DefaultServerWebExchange(ServerHttpRequest request,
ServerHttpResponse response,
WebSessionManager sessionManager) |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
getAttribute(String name)
Return the request attribute value if present.
|
Map<String,Object> |
getAttributes()
Return a mutable map of request attributes for the current exchange.
|
ServerHttpRequest |
getRequest()
Return the current HTTP request.
|
ServerHttpResponse |
getResponse()
Return the current HTTP response.
|
reactor.core.publisher.Mono<WebSession> |
getSession()
Return the web session for the current request.
|
public DefaultServerWebExchange(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager)
public ServerHttpRequest getRequest()
ServerWebExchangegetRequest in interface ServerWebExchangepublic ServerHttpResponse getResponse()
ServerWebExchangegetResponse in interface ServerWebExchangepublic Map<String,Object> getAttributes()
ServerWebExchangegetAttributes in interface ServerWebExchangepublic <T> Optional<T> getAttribute(String name)
ServerWebExchangegetAttribute in interface ServerWebExchangeT - the attribute typename - the attribute namepublic reactor.core.publisher.Mono<WebSession> getSession()
ServerWebExchangeWebSession
for more details.getSession in interface ServerWebExchange