Package io.quarkus.rest.client.reactive
Class ReactiveClientHeadersFactory
java.lang.Object
io.quarkus.rest.client.reactive.ReactiveClientHeadersFactory
- All Implemented Interfaces:
org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory
public abstract class ReactiveClientHeadersFactory
extends Object
implements org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory
Reactive ClientHeadersFactory flavor for Quarkus rest-client reactive extension.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHeaders
(jakarta.ws.rs.core.MultivaluedMap<String, String> incomingHeaders, jakarta.ws.rs.core.MultivaluedMap<String, String> clientOutgoingHeaders) Updates the HTTP headers to send to the remote service.update
(jakarta.ws.rs.core.MultivaluedMap<String, String> incomingHeaders, jakarta.ws.rs.core.MultivaluedMap<String, String> clientOutgoingHeaders)
-
Constructor Details
-
ReactiveClientHeadersFactory
public ReactiveClientHeadersFactory()
-
-
Method Details
-
getHeaders
public abstract io.smallrye.mutiny.Uni<jakarta.ws.rs.core.MultivaluedMap<String,String>> getHeaders(jakarta.ws.rs.core.MultivaluedMap<String, String> incomingHeaders, jakarta.ws.rs.core.MultivaluedMap<String, String> clientOutgoingHeaders) Updates the HTTP headers to send to the remote service. Note that providers on the outbound processing chain could further update the headers.- Parameters:
incomingHeaders
- the map of headers from the inbound JAX-RS request. This will be an empty map if the associated client interface is not part of a JAX-RS request.clientOutgoingHeaders
- the read-only map of header parameters specified on the client interface.- Returns:
- a Uni with a map of HTTP headers to merge with the clientOutgoingHeaders to be sent to the remote service.
- See Also:
-
ClientHeadersFactory.update(MultivaluedMap, MultivaluedMap)
-
update
public final jakarta.ws.rs.core.MultivaluedMap<String,String> update(jakarta.ws.rs.core.MultivaluedMap<String, String> incomingHeaders, jakarta.ws.rs.core.MultivaluedMap<String, String> clientOutgoingHeaders) - Specified by:
update
in interfaceorg.eclipse.microprofile.rest.client.ext.ClientHeadersFactory
-