Interface HeaderFillerFactory
public interface HeaderFillerFactory
- Author:
- Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com 2020-07-10
-
Method Summary
Modifier and TypeMethodDescriptioncreateFiller(String value, String headerName, boolean required, Class<?> interfaceClass, Object clientProxy) CreatesHeaderFiller, will be called once for each method withClientHeaderParamannotationintIf multipleHeaderFillerFactory's are defined, the one with the highest priority is used
-
Method Details
-
getPriority
int getPriority()If multipleHeaderFillerFactory's are defined, the one with the highest priority is used- Returns:
- the priority
-
createFiller
HeaderFiller createFiller(String value, String headerName, boolean required, Class<?> interfaceClass, Object clientProxy) CreatesHeaderFiller, will be called once for each method withClientHeaderParamannotation- 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
-