class DefaultRouterFunctionSpec extends AbstractMockServerSpec<WebTestClient.RouterFunctionSpec> implements WebTestClient.RouterFunctionSpec
Modifier and Type | Field and Description |
---|---|
private HandlerStrategies |
handlerStrategies |
private RouterFunction<?> |
routerFunction |
Constructor and Description |
---|
DefaultRouterFunctionSpec(RouterFunction<?> routerFunction) |
Modifier and Type | Method and Description |
---|---|
WebTestClient.RouterFunctionSpec |
handlerStrategies(HandlerStrategies handlerStrategies)
Configure handler strategies.
|
protected WebHttpHandlerBuilder |
initHttpHandlerBuilder()
Sub-classes must create an
WebHttpHandlerBuilder that will then
be used to create the HttpHandler for the mock server. |
apply, build, configureClient, webFilter, webSessionManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, build, configureClient, webFilter, webSessionManager
private final RouterFunction<?> routerFunction
private HandlerStrategies handlerStrategies
DefaultRouterFunctionSpec(RouterFunction<?> routerFunction)
public WebTestClient.RouterFunctionSpec handlerStrategies(HandlerStrategies handlerStrategies)
WebTestClient.RouterFunctionSpec
handlerStrategies
in interface WebTestClient.RouterFunctionSpec
protected WebHttpHandlerBuilder initHttpHandlerBuilder()
AbstractMockServerSpec
WebHttpHandlerBuilder
that will then
be used to create the HttpHandler for the mock server.initHttpHandlerBuilder
in class AbstractMockServerSpec<WebTestClient.RouterFunctionSpec>