public static class MockServerWebExchange.Builder
extends java.lang.Object
MockServerWebExchange
.Constructor and Description |
---|
Builder(MockServerHttpRequest request) |
Modifier and Type | Method and Description |
---|---|
MockServerWebExchange |
build()
Build the
MockServerWebExchange instance. |
MockServerWebExchange.Builder |
session(WebSession session)
Set the session to use for the exchange.
|
MockServerWebExchange.Builder |
sessionManager(WebSessionManager sessionManager)
Provide a
WebSessionManager instance to use with the exchange. |
public Builder(MockServerHttpRequest request)
public MockServerWebExchange.Builder session(WebSession session)
This method is mutually exclusive with
sessionManager(WebSessionManager)
.
session
- the session to useMockWebSession
public MockServerWebExchange.Builder sessionManager(WebSessionManager sessionManager)
WebSessionManager
instance to use with the exchange.
This is mutually exclusive with session(WebSession)
.
sessionManager
- the session manager to usepublic MockServerWebExchange build()
MockServerWebExchange
instance.