java.lang.Object
org.jboss.resteasy.microprofile.client.header.HeaderUtils

public class HeaderUtils extends Object
Author:
Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com 2020-07-10
  • Method Details

    • createMethodHandle

      public static MethodHandle createMethodHandle(Method method, Object clientProxy)
      Create method handle to call a default method
      Parameters:
      method - method to create the handle for
      clientProxy - proxy of the rest client
      Returns:
      method handle
    • resolveMethod

      public static Method resolveMethod(String methodSpecifier, Class<?> interfaceClass, String headerName)
      resolve method of a given name in a given interface class
      Parameters:
      methodSpecifier - [fully.quallified.ClassName.]methodName
      interfaceClass - class of the interface, on which the method was defined
      headerName - name of the header for which the method should be called
      Returns:
      method to be called
    • castListToListOfStrings

      public static List<String> castListToListOfStrings(List<?> result)
      casts List<?> to List of Strings
      Parameters:
      result - list of unknown type
      Returns:
      list of strings