Package org.apache.hc.core5.util
Class ReflectionUtils
java.lang.Object
org.apache.hc.core5.util.ReflectionUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcallGetter(Object object, String getterName, Class<T> resultType) static <T> Tstatic voidcallSetter(Object object, String setterName, Class<?> type, Object value) static intstatic boolean
-
Field Details
-
SUPPORTS_KEEPALIVE_OPTIONS
private static final boolean SUPPORTS_KEEPALIVE_OPTIONS
-
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
callSetter
-
callGetter
-
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()
-