Interface WebClientService
- All Superinterfaces:
NamedService
- All Known Subinterfaces:
WebClientDiscovery
- All Known Implementing Classes:
WebClientContextService, WebClientMeter, WebClientMetrics, WebClientSecurity, WebClientTelemetryMetrics, WebClientTelemetryTracing, WebClientTracing
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Extension that can modify web client behavior.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceChain of services.static interfaceTerminal service chain that can expose transport response context after an invocation.static interfaceTerminal service chain that exposes the currently selected wire protocol. -
Method Summary
Modifier and TypeMethodDescriptionhandle(WebClientService.Chain chain, WebClientServiceRequest clientRequest) Invoke a service, callWebClientService.Chain.proceed(io.helidon.webclient.api.WebClientServiceRequest)to call the next service in the chain.default Stringname()Name of this implementation, as provided inConfiguredProvider.create(Config, String).default Stringtype()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().
-
Method Details
-
name
Description copied from interface:NamedServiceName of this implementation, as provided inConfiguredProvider.create(Config, String).- Specified by:
namein interfaceNamedService- Returns:
- name of this service
-
type
Description copied from interface:NamedServiceType of this implementation, to distinguish instances of same type, with differentNamedService.name(). Use for exampleConfiguredProvider.configKey()to define the type.- Specified by:
typein interfaceNamedService- Returns:
- type of this service
-
handle
WebClientServiceResponse handle(WebClientService.Chain chain, WebClientServiceRequest clientRequest) Invoke a service, callWebClientService.Chain.proceed(io.helidon.webclient.api.WebClientServiceRequest)to call the next service in the chain.- Parameters:
chain- to invoke next web client service, or the HTTP call if this is the last serviceclientRequest- request from the client, or previous services- Returns:
- response to be returned to the client
-