I am using org.springframework.http.client.HttpComponentsClientHttpRequestFactory in my code and I want to use Reflection (org.springframework.util.ReflectionUtils) to retrieve some timeout values like ConnectTimeout from this object. I am not very clear on how to retrieve this field from this object.
I tried something like: ReflectionUtils.findField(httpComponentsClientHttpRequestFactory.getClass(), "connectTimeout");
But, the value is returned as null.
Aucun commentaire:
Enregistrer un commentaire