How to set proxy settings on RESTEasy client in JBoss EAP 7?
Issue
- The
org.jboss.resteasy.jaxrs.client.proxy.hostandorg.jboss.resteasy.jaxrs.client.proxy.portcan't enable the proxy settings viajavax.ws.rs.client.ClientBuilderon EAP 7.2. - RESTEasy is not honoring -D params for proxy. i.e.
-Dhttp.proxyHost=proxy.xx.xx.com -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.xx.xx.com -Dhttps.proxyPort=8080 - Adding
Client.property(ClientProperties.PROXY_URI, "http://proxy.xx.xx.com:8080")is not honored for setting a proxy on the Client API - We have a generic api that also supports Jersey and Tomcat in some project, so it can't reference RESTEasy directly to set the proxy. how can't set the proxy is a generic way?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.