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 Constructor Description ReactiveClientHeadersFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract io.smallrye.mutiny.Uni<javax.ws.rs.core.MultivaluedMap<String,String>>
getHeaders(javax.ws.rs.core.MultivaluedMap<String,String> incomingHeaders, javax.ws.rs.core.MultivaluedMap<String,String> clientOutgoingHeaders)
Updates the HTTP headers to send to the remote service.javax.ws.rs.core.MultivaluedMap<String,String>
update(javax.ws.rs.core.MultivaluedMap<String,String> incomingHeaders, javax.ws.rs.core.MultivaluedMap<String,String> clientOutgoingHeaders)
-
-
-
Method Detail
-
getHeaders
public abstract io.smallrye.mutiny.Uni<javax.ws.rs.core.MultivaluedMap<String,String>> getHeaders(javax.ws.rs.core.MultivaluedMap<String,String> incomingHeaders, javax.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 javax.ws.rs.core.MultivaluedMap<String,String> update(javax.ws.rs.core.MultivaluedMap<String,String> incomingHeaders, javax.ws.rs.core.MultivaluedMap<String,String> clientOutgoingHeaders)
- Specified by:
update
in interfaceorg.eclipse.microprofile.rest.client.ext.ClientHeadersFactory
-
-