# Uses of Class
org.springframework.mock.web.server.MockServerWebExchange.Builder

Packages that use MockServerWebExchange.Builder
Package
Description
org.springframework.mock.web.server
Mock implementations of Spring's reactive server web API abstractions.

## Uses of MockServerWebExchange.Builder in org.springframework.mock.web.server

Methods in org.springframework.mock.web.server that return MockServerWebExchange.Builder
Modifier and Type
Method
Description
`MockServerWebExchange.Builder`
MockServerWebExchange.Builder.`applicationContext(org.springframework.context.ApplicationContext applicationContext)`
Provide the `ApplicationContext` to expose through the exchange.
`static MockServerWebExchange.Builder`
MockServerWebExchange.`builder(MockServerHttpRequest request)`
Create a `MockServerWebExchange.Builder` starting with the given mock request.
`static MockServerWebExchange.Builder`
MockServerWebExchange.`builder(MockServerHttpRequest.BaseBuilder<?> requestBuilder)`
Variant of `MockServerWebExchange.builder(MockServerHttpRequest)` with a mock request builder.
`MockServerWebExchange.Builder`
MockServerWebExchange.Builder.`principal(Principal principal)`
Provide a user to associate with the exchange.
`MockServerWebExchange.Builder`
MockServerWebExchange.Builder.`session(org.springframework.web.server.WebSession session)`
Set the session to use for the exchange.
`MockServerWebExchange.Builder`
MockServerWebExchange.Builder.`sessionManager(org.springframework.web.server.session.WebSessionManager sessionManager)`
Provide a `WebSessionManager` instance to use with the exchange.