public class DefaultClientHeadersFactoryImpl extends java.lang.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 java.lang.String |
PROPAGATE_PROPERTY |
Constructor and Description |
---|
DefaultClientHeadersFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
<any> |
update(<any> incomingHeaders,
<any> clientOutgoingHeaders)
Updates the HTTP headers to send to the remote service.
|
public static final java.lang.String PROPAGATE_PROPERTY
public <any> update(<any> incomingHeaders, <any> 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.