类 DefaultWebTestClient
java.lang.Object
cn.taketoday.test.web.reactive.server.DefaultWebTestClient
- 所有已实现的接口:
WebTestClient
Default implementation of
WebTestClient.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Sam Brannen, Michał Rowicki
-
嵌套类概要
嵌套类修饰符和类型类说明private static classprivate static classprivate static classprivate classprivate static class从接口继承的嵌套类/接口 cn.taketoday.test.web.reactive.server.WebTestClient
WebTestClient.BodyContentSpec, WebTestClient.BodySpec<B,S extends WebTestClient.BodySpec<B, S>>, WebTestClient.Builder, WebTestClient.ListBodySpec<E>, WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>, WebTestClient.RequestBodySpec, WebTestClient.RequestBodyUriSpec, WebTestClient.RequestHeadersSpec<S extends WebTestClient.RequestHeadersSpec<S>>, WebTestClient.RequestHeadersUriSpec<S extends WebTestClient.RequestHeadersSpec<S>>, WebTestClient.ResponseSpec, WebTestClient.RouterFunctionSpec, WebTestClient.UriSpec<S extends WebTestClient.RequestHeadersSpec<?>> -
字段概要
字段修饰符和类型字段说明private final DefaultWebTestClientBuilderprivate final cn.taketoday.http.HttpHeadersprivate final Consumer<EntityExchangeResult<?>>private final cn.taketoday.web.reactive.function.client.ExchangeFunctionprivate final AtomicLongprivate final Durationprivate final cn.taketoday.web.util.UriBuilderFactoryprivate final WiretapConnector从接口继承的字段 cn.taketoday.test.web.reactive.server.WebTestClient
WEBTESTCLIENT_REQUEST_ID -
构造器概要
构造器构造器说明DefaultWebTestClient(cn.taketoday.http.client.reactive.ClientHttpConnector connector, Function<cn.taketoday.http.client.reactive.ClientHttpConnector, cn.taketoday.web.reactive.function.client.ExchangeFunction> exchangeFactory, cn.taketoday.web.util.UriBuilderFactory uriBuilderFactory, cn.taketoday.http.HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, String> cookies, Consumer<EntityExchangeResult<?>> entityResultConsumer, Duration responseTimeout, DefaultWebTestClientBuilder clientBuilder) -
方法概要
修饰符和类型方法说明delete()Prepare an HTTP DELETE request.get()Prepare an HTTP GET request.private Durationhead()Prepare an HTTP HEAD request.method(cn.taketoday.http.HttpMethod httpMethod) Prepare a request for the specifiedHttpMethod.private WebTestClient.RequestBodyUriSpecmethodInternal(cn.taketoday.http.HttpMethod httpMethod) mutate()Return a builder to mutate properties of this web test client.mutateWith(WebTestClientConfigurer configurer) Mutate theWebTestClient, apply the given configurer, and build a new instance.options()Prepare an HTTP OPTIONS request.patch()Prepare an HTTP PATCH request.post()Prepare an HTTP POST request.put()Prepare an HTTP PUT request.
-
字段详细资料
-
wiretapConnector
-
exchangeFunction
private final cn.taketoday.web.reactive.function.client.ExchangeFunction exchangeFunction -
uriBuilderFactory
private final cn.taketoday.web.util.UriBuilderFactory uriBuilderFactory -
defaultHeaders
@Nullable private final cn.taketoday.http.HttpHeaders defaultHeaders -
defaultCookies
-
entityResultConsumer
-
responseTimeout
-
builder
-
requestIndex
-
-
构造器详细资料
-
DefaultWebTestClient
DefaultWebTestClient(cn.taketoday.http.client.reactive.ClientHttpConnector connector, Function<cn.taketoday.http.client.reactive.ClientHttpConnector, cn.taketoday.web.reactive.function.client.ExchangeFunction> exchangeFactory, cn.taketoday.web.util.UriBuilderFactory uriBuilderFactory, @Nullable cn.taketoday.http.HttpHeaders headers, @Nullable cn.taketoday.util.MultiValueMap<String, String> cookies, Consumer<EntityExchangeResult<?>> entityResultConsumer, @Nullable Duration responseTimeout, DefaultWebTestClientBuilder clientBuilder)
-
-
方法详细资料
-
getResponseTimeout
-
get
从接口复制的说明:WebTestClientPrepare an HTTP GET request.- 指定者:
get在接口中WebTestClient- 返回:
- a spec for specifying the target URL
-
head
从接口复制的说明:WebTestClientPrepare an HTTP HEAD request.- 指定者:
head在接口中WebTestClient- 返回:
- a spec for specifying the target URL
-
post
从接口复制的说明:WebTestClientPrepare an HTTP POST request.- 指定者:
post在接口中WebTestClient- 返回:
- a spec for specifying the target URL
-
put
从接口复制的说明:WebTestClientPrepare an HTTP PUT request.- 指定者:
put在接口中WebTestClient- 返回:
- a spec for specifying the target URL
-
patch
从接口复制的说明:WebTestClientPrepare an HTTP PATCH request.- 指定者:
patch在接口中WebTestClient- 返回:
- a spec for specifying the target URL
-
delete
从接口复制的说明:WebTestClientPrepare an HTTP DELETE request.- 指定者:
delete在接口中WebTestClient- 返回:
- a spec for specifying the target URL
-
options
从接口复制的说明:WebTestClientPrepare an HTTP OPTIONS request.- 指定者:
options在接口中WebTestClient- 返回:
- a spec for specifying the target URL
-
method
从接口复制的说明:WebTestClientPrepare a request for the specifiedHttpMethod.- 指定者:
method在接口中WebTestClient- 返回:
- a spec for specifying the target URL
-
methodInternal
-
mutate
从接口复制的说明:WebTestClientReturn a builder to mutate properties of this web test client.- 指定者:
mutate在接口中WebTestClient
-
mutateWith
从接口复制的说明:WebTestClientMutate theWebTestClient, apply the given configurer, and build a new instance. Essentially a shortcut for:mutate().apply(configurer).build();
- 指定者:
mutateWith在接口中WebTestClient- 参数:
configurer- the configurer to apply- 返回:
- the mutated test client
-