public class DefaultClientHeadersFactoryImpl extends Object implements ClientHeadersFactory
org.eclipse.microprofile.rest.client.propagateHeaders
.
The value of this property should be a comma-separated list of HTTP header names. If the headers specified in the property exist in the inbound JAX-RS request, this class will propagate those headers to the outbound Rest Client request.
Any headers present on clientOutgoingHeaders
will not be returned when calling the
update
method.
Modifier and Type | Field and Description |
---|---|
static String |
PROPAGATE_PROPERTY |
Constructor and Description |
---|
DefaultClientHeadersFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
jakarta.ws.rs.core.MultivaluedMap<String,String> |
update(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.
|
public static final String PROPAGATE_PROPERTY
public jakarta.ws.rs.core.MultivaluedMap<String,String> update(jakarta.ws.rs.core.MultivaluedMap<String,String> incomingHeaders, jakarta.ws.rs.core.MultivaluedMap<String,String> clientOutgoingHeaders)
ClientHeadersFactory
update
in interface ClientHeadersFactory
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.Copyright © 2017 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.