Class HeaderUtils
java.lang.Object
org.jboss.resteasy.microprofile.client.header.HeaderUtils
- Author:
- Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com 2020-07-10
-
Method Summary
Modifier and TypeMethodDescriptioncastListToListOfStrings(List<?> result) casts List<?> to List of Stringsstatic MethodHandlecreateMethodHandle(Method method, Object clientProxy) Create method handle to call a default methodstatic MethodresolveMethod(String methodSpecifier, Class<?> interfaceClass, String headerName) resolve method of a given name in a given interface class
-
Method Details
-
createMethodHandle
Create method handle to call a default method- Parameters:
method- method to create the handle forclientProxy- 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.]methodNameinterfaceClass- class of the interface, on which the method was definedheaderName- name of the header for which the method should be called- Returns:
- method to be called
-
castListToListOfStrings
casts List<?> to List of Strings- Parameters:
result- list of unknown type- Returns:
- list of strings
-