Custom hostname resolver for JAX-RS client
问题 Is there a way to customize the host name resolution inside a JAX-RS client? I am using javax.ws.rs.client.ClientBuilder to create a client and I would like that for example https://mytestinghost.tech resolves mytestinghost.tech to an IP I can define; e.g. 1.2.3.4 . I am either using default connector or Jetty HTTP(2) connector. The client is retrieved using the following code. ClientBuilder.newBuilder() .trustStore(clientCertificateProvider.getCertificate()) .withConfig(new ClientConfig()