@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface RegisterClientHeaders
ClientHeadersFactory
should be used to generate or propagate HTTP headers on the outbound request.
When annotation is placed at the interface level of a Rest Client interface, the implementation will invoke the ClientHeadersFactory's
update
method.
If no implementation class of the ClientHeadersFactory interface is specified in the annotation, then the
DefaultClientHeadersFactoryImpl
will be used. This implementation will simply propagate headers (specified via MP Config property)
from an inbound JAX-RS request (if applicable) to the outbound request.
If a ClientHeadersFactory class specified is not found on the classpath, this should be considered a deployment exception.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends ClientHeadersFactory> |
value |
public abstract java.lang.Class<? extends ClientHeadersFactory> value