- Enclosing interface:
WebClient<A extends ExchangeContext>
public static interface WebClient.Boot
Web client boot used that initializes the root Web client.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptiondefault WebClient
<ExchangeContext> Initializes the root Web client with no context.<T extends ExchangeContext>
WebClient<T> Initializes the root Web client with the specified exchange context factory.
-
Method Details
-
webClient
Initializes the root Web client with no context.
- Returns:
- the root Web client
- Throws:
IllegalStateException
- if the root Web client has already been initialized
-
webClient
<T extends ExchangeContext> WebClient<T> webClient(Supplier<T> contextFactory) throws IllegalStateException Initializes the root Web client with the specified exchange context factory.
- Type Parameters:
T
- the exchange context type- Parameters:
contextFactory
- the exchange context factory- Returns:
- the root Web client
- Throws:
IllegalStateException
- if the root Web client has already been initialized
-