WebClient.Builder .
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private ClientHttpConnector | |
| private MultiValueMap | |
| private HttpHeaders | |
| private Consumer | |
| private Map | |
| private ExchangeFunction | |
| private List | |
| private static final boolean | |
| private static final boolean | |
| private ClientRequestObservationConvention | |
| private ObservationRegistry | |
| private static final boolean | |
| private static final boolean | |
| private Map | |
| private ExchangeStrategies | |
| private List | |
| private UriBuilderFactory |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| baseUrl | back to summary |
|---|---|
| private String baseUrl
| |
| connector | back to summary |
|---|---|
| private ClientHttpConnector connector
| |
| defaultCookies | back to summary |
|---|---|
| private MultiValueMap<String, String> defaultCookies
| |
| defaultHeaders | back to summary |
|---|---|
| private HttpHeaders defaultHeaders
| |
| defaultRequest | back to summary |
|---|---|
| private Consumer<WebClient. | |
| defaultUriVariables | back to summary |
|---|---|
| private Map<String, ?> defaultUriVariables
| |
| exchangeFunction | back to summary |
|---|---|
| private ExchangeFunction exchangeFunction
| |
| filters | back to summary |
|---|---|
| private List<ExchangeFilterFunction> filters
| |
| httpComponentsClientPresent | back to summary |
|---|---|
| private static final boolean httpComponentsClientPresent | |
| jettyClientPresent | back to summary |
|---|---|
| private static final boolean jettyClientPresent | |
| observationConvention | back to summary |
|---|---|
| private ClientRequestObservationConvention observationConvention
| |
| observationRegistry | back to summary |
|---|---|
| private ObservationRegistry observationRegistry | |
| reactorNetty2ClientPresent | back to summary |
|---|---|
| private static final boolean reactorNetty2ClientPresent | |
| reactorNettyClientPresent | back to summary |
|---|---|
| private static final boolean reactorNettyClientPresent | |
| statusHandlers | back to summary |
|---|---|
| private Map<Predicate<HttpStatusCode>, Function<ClientResponse, Mono<? extends Throwable>>> statusHandlers
| |
| strategies | back to summary |
|---|---|
| private ExchangeStrategies strategies
| |
| strategiesConfigurers | back to summary |
|---|---|
| private List<Consumer<ExchangeStrategies. | |
| uriBuilderFactory | back to summary |
|---|---|
| private UriBuilderFactory uriBuilderFactory
| |
| DefaultWebClientBuilder | back to summary |
|---|---|
| public DefaultWebClientBuilder() | |
| DefaultWebClientBuilder | back to summary |
|---|---|
| public DefaultWebClientBuilder(DefaultWebClientBuilder other) | |
| apply | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Apply the given This can be useful for applying pre-packaged customizations. | |
| baseUrl | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Configure a base URL for requests. Effectively a shortcut for:
String baseUrl = "https://abc.go.com/v1"; DefaultUriBuilderFactory factory = new DefaultUriBuilderFactory(baseUrl); WebClient client = WebClient.builder().uriBuilderFactory(factory).build(); The Note this method is mutually exclusive with
| |
| build | back to summary |
|---|---|
| public WebClient build() Implements org. Doc from org. Build the
| |
| clientConnector | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Configure the By default this is set to
| |
| clone | back to summary |
|---|---|
| public WebClient. Overrides java. Implements org. Doc from org. Clone this
| |
| codecs | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Configure the codecs for the
| |
| copyDefaultCookies | back to summary |
|---|---|
private MultiValueMap
| |
| copyDefaultHeaders | back to summary |
|---|---|
private HttpHeaders copyDefaultHeaders()
| |
| defaultCookie | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Global option to specify a cookie to be added to every request, if the request does not already contain such a cookie. | |
| defaultCookies | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Provides access to every
| |
| defaultHeader | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Global option to specify a header to be added to every request, if the request does not already contain such a header. | |
| defaultHeaders | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Provides access to every
| |
| defaultRequest | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Provide a consumer to customize every request being built.
| |
| defaultStatusHandler | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Register a default
The default status handlers are not applied to
| |
| defaultUriVariables | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Configure default URL variable values to use when expanding URI
templates with a
Map<String, ?> defaultVars = ...; DefaultUriBuilderFactory factory = new DefaultUriBuilderFactory(); factory.setDefaultVariables(defaultVars); WebClient client = WebClient.builder().uriBuilderFactory(factory).build(); Note this method is mutually exclusive with
| |
| exchangeFunction | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Provide an This is an alternative to, and effectively overrides
| |
| exchangeStrategies | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Configure the For most cases, prefer using By default this is set to
| |
| exchangeStrategies | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Deprecated
Customize the strategies configured via
| |
| filter | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Add the given filter to the end of the filter chain.
| |
| filters | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Manipulate the filters with the given consumer. The list provided to the consumer is "live", so that the consumer can be used to remove filters, change ordering, etc. | |
| initConnector | back to summary |
|---|---|
| private ClientHttpConnector initConnector() | |
| initCookies | back to summary |
|---|---|
| private MultiValueMap | |
| initExchangeStrategies | back to summary |
|---|---|
| private ExchangeStrategies initExchangeStrategies() | |
| initFilters | back to summary |
|---|---|
| private List | |
| initHeaders | back to summary |
|---|---|
| private HttpHeaders initHeaders() | |
| initUriBuilderFactory | back to summary |
|---|---|
| private UriBuilderFactory initUriBuilderFactory() | |
| observationConvention | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Provide an
| |
| observationRegistry | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Provide an
| |
| uriBuilderFactory | back to summary |
|---|---|
| public WebClient. Implements org. Doc from org. Provide a pre-configured
| |