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.
Modifier and Type | Field and Description |
---|---|
static String |
PROPAGATE_PROPERTY |
Constructor and Description |
---|
DefaultClientHeadersFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.MultivaluedMap<String,String> |
update(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.
|
public static final String PROPAGATE_PROPERTY
public javax.ws.rs.core.MultivaluedMap<String,String> update(javax.ws.rs.core.MultivaluedMap<String,String> incomingHeaders, javax.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 © 2019 Eclipse Foundation. All rights reserved.