How to set proxy settings on RESTEasy client in JBoss EAP 7?

Solution Verified - Updated -

Issue

  • The org.jboss.resteasy.jaxrs.client.proxy.host and org.jboss.resteasy.jaxrs.client.proxy.port can't enable the proxy settings via javax.ws.rs.client.ClientBuilder on 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content