| Modifier and Type | Method and Description | 
|---|---|
WebClient.Builder | 
apply(Consumer<WebClient.Builder> builderConsumer)
Shortcut for pre-packaged customizations to WebTest builder. 
 | 
WebClient.Builder | 
baseUrl(String baseUrl)
Configure a base URI as described in  
WebClient.create(String). | 
WebClient | 
build()
Builder the  
WebClient instance. | 
WebClient.Builder | 
clientConnector(ClientHttpConnector connector)
Configure the  
ClientHttpConnector to use. | 
WebClient.Builder | 
clone()
Clone this  
WebClient.Builder | 
WebClient.Builder | 
defaultCookie(String cookieName,
             String... cookieValues)
Add the given header to all requests that haven't added it. 
 | 
WebClient.Builder | 
defaultCookies(Consumer<MultiValueMap<String,String>> cookiesConsumer)
Manipulate the default cookies with the given consumer. 
 | 
WebClient.Builder | 
defaultHeader(String headerName,
             String... headerValues)
Add the given header to all requests that have not added it. 
 | 
WebClient.Builder | 
defaultHeaders(Consumer<HttpHeaders> headersConsumer)
Manipulate the default headers with the given consumer. 
 | 
WebClient.Builder | 
defaultUriVariables(Map<String,?> defaultUriVariables)
Configure default URI variable values that will be used when expanding
 URI templates using a  
Map. | 
WebClient.Builder | 
exchangeFunction(ExchangeFunction exchangeFunction)
Provide a pre-configured  
ExchangeFunction instance. | 
WebClient.Builder | 
exchangeStrategies(ExchangeStrategies strategies)
Configure the  
ExchangeStrategies to use. | 
WebClient.Builder | 
filter(ExchangeFilterFunction filter)
Add the given filter to the filter chain. 
 | 
WebClient.Builder | 
filters(Consumer<List<ExchangeFilterFunction>> filtersConsumer)
Manipulate the filters with the given consumer. 
 | 
WebClient.Builder | 
uriBuilderFactory(UriBuilderFactory uriBuilderFactory)
Provide a pre-configured  
UriBuilderFactory instance. | 
WebClient.Builder baseUrl(String baseUrl)
WebClient.create(String).WebClient.Builder defaultUriVariables(Map<String,?> defaultUriVariables)
Map.defaultUriVariables - the default values to usebaseUrl(String), 
uriBuilderFactory(UriBuilderFactory)WebClient.Builder uriBuilderFactory(UriBuilderFactory uriBuilderFactory)
UriBuilderFactory instance. This is
 an alternative to and effectively overrides the following:
 uriBuilderFactory - the URI builder factory to usebaseUrl(String), 
defaultUriVariables(Map)WebClient.Builder defaultHeader(String headerName, String... headerValues)
headerName - the header nameheaderValues - the header valuesWebClient.Builder defaultHeaders(Consumer<HttpHeaders> headersConsumer)
HttpHeaders methods.headersConsumer - a function that consumes the HttpHeadersWebClient.Builder defaultCookie(String cookieName, String... cookieValues)
cookieName - the cookie namecookieValues - the cookie valuesWebClient.Builder defaultCookies(Consumer<MultiValueMap<String,String>> cookiesConsumer)
MultiValueMap methods.cookiesConsumer - a function that consumes the cookies mapWebClient.Builder clientConnector(ClientHttpConnector connector)
ClientHttpConnector to use.
 By default an instance of
 ReactorClientHttpConnector is created if this is not set. However a
 shared instance may be passed instead, e.g. for use with multiple
 WebClient's targeting different base URIs.
connector - the connector to useexchangeStrategies(ExchangeStrategies), 
exchangeFunction(ExchangeFunction)WebClient.Builder filter(ExchangeFilterFunction filter)
filter - the filter to be added to the chainWebClient.Builder filters(Consumer<List<ExchangeFilterFunction>> filtersConsumer)
filtersConsumer - a function that consumes the filter listWebClient.Builder exchangeStrategies(ExchangeStrategies strategies)
ExchangeStrategies to use.
 By default ExchangeStrategies.withDefaults() is used.
strategies - the strategies to useclientConnector(ClientHttpConnector), 
exchangeFunction(ExchangeFunction)WebClient.Builder exchangeFunction(ExchangeFunction exchangeFunction)
ExchangeFunction instance. This is
 an alternative to and effectively overrides the following:
 exchangeFunction - the exchange function to useclientConnector(ClientHttpConnector), 
exchangeStrategies(ExchangeStrategies)WebClient.Builder clone()
WebClient.BuilderWebClient.Builder apply(Consumer<WebClient.Builder> builderConsumer)
builderConsumer - the consumer to apply