Interface HeaderFillerFactory


public interface HeaderFillerFactory
Author:
Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com 2020-07-10
  • Method Details

    • getPriority

      int getPriority()
      If multiple HeaderFillerFactory'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)
      Creates HeaderFiller, will be called once for each method with ClientHeaderParam annotation
      Parameters:
      value - value of the annotation
      headerName - name of the header to generate
      required - if true, a failure of header computation will fail the rest client invocation
      interfaceClass - JAX-RS interface class
      clientProxy - proxy object
      Returns:
      an object that can generate the header value