Search code examples
javaweb-servicesjbossjax-rsresteasy

Disable hostname verification on org.jboss.resteasy.client.ClientRequest;


I am trying to invoke a rest service by using the abovementioned client. How can i disable hostname verification ?


Solution

  • After some research it seems that the only way to disable hostname verification with RestEasy is to use org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder and setResteasyClientBuilder.HostnameVerificationPolicy.