Class DefaultHeaderFillerFactory
- java.lang.Object
-
- org.jboss.resteasy.microprofile.client.header.DefaultHeaderFillerFactory
-
- All Implemented Interfaces:
HeaderFillerFactory
public class DefaultHeaderFillerFactory extends Object implements HeaderFillerFactory
- Author:
- Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com 2020-07-10
-
-
Constructor Summary
Constructors Constructor Description DefaultHeaderFillerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeaderFiller
createFiller(String value, String headerName, boolean required, Class<?> interfaceClass, Object clientProxy)
CreatesHeaderFiller
, will be called once for each method withClientHeaderParam
annotationint
getPriority()
If multipleHeaderFillerFactory
's are defined, the one with the highest priority is used
-
-
-
Method Detail
-
getPriority
public int getPriority()
Description copied from interface:HeaderFillerFactory
If multipleHeaderFillerFactory
's are defined, the one with the highest priority is used- Specified by:
getPriority
in interfaceHeaderFillerFactory
- Returns:
- the priority
-
createFiller
public HeaderFiller createFiller(String value, String headerName, boolean required, Class<?> interfaceClass, Object clientProxy)
Description copied from interface:HeaderFillerFactory
CreatesHeaderFiller
, will be called once for each method withClientHeaderParam
annotation- Specified by:
createFiller
in interfaceHeaderFillerFactory
- Parameters:
value
- value of the annotationheaderName
- name of the header to generaterequired
- if true, a failure of header computation will fail the rest client invocationinterfaceClass
- JAX-RS interface classclientProxy
- proxy object- Returns:
- an object that can generate the header value
-
-