Class ReflectionUtils

java.lang.Object
org.apache.hc.core5.util.ReflectionUtils

@Internal public final class ReflectionUtils extends Object
  • Field Details

    • SUPPORTS_KEEPALIVE_OPTIONS

      private static final boolean SUPPORTS_KEEPALIVE_OPTIONS
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • callSetter

      public static void callSetter(Object object, String setterName, Class<?> type, Object value)
    • callGetter

      public static <T> T callGetter(Object object, String getterName, Class<T> resultType)
    • callGetter

      public static <T> T callGetter(Object object, String getterName, Object arg, Class<?> argType, Class<T> resultType)
      Type Parameters:
      T - The return type.
      Since:
      5.3
    • determineJRELevel

      public static int determineJRELevel()
    • supportsKeepAliveOptions

      public static boolean supportsKeepAliveOptions()