Class 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 Detail

      • ReactiveClientHeadersFactory

        public ReactiveClientHeadersFactory()
    • Method Detail

      • getHeaders

        public 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)
      • getHeaders

        @Deprecated
        public io.smallrye.mutiny.Uni<javax.ws.rs.core.MultivaluedMap<String,​String>> getHeaders​(javax.ws.rs.core.MultivaluedMap<String,​String> incomingHeaders)
        Deprecated.
        Will be removed in Quarkus 2.8. Implement and use getHeaders(MultivaluedMap, MultivaluedMap) instead
        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.
        Returns:
        a Uni with a map of HTTP headers to merge with the clientOutgoingHeaders to be sent to the remote service.
      • 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 interface org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory