Author: ron.sigal(a)jboss.com
Date: 2008-11-13 00:29:24 -0500 (Thu, 13 Nov 2008)
New Revision: 4670
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
Log:
JBREM-1050: createURLConnection() now checks for system property
"http.proxyHost" when necessary.
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java 2008-11-13
05:25:44 UTC (rev 4669)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java 2008-11-13
05:29:24 UTC (rev 4670)
@@ -740,6 +740,16 @@
{
externalURL = new URL(url);
httpURLConn = (HttpURLConnection) externalURL.openConnection();
+
+ // Check if proxy is being configured by system properties.
+ if (System.getProperty("http.proxyHost") != null)
+ {
+ String proxyAuth = getProxyAuth(metadata);
+ if (proxyAuth != null)
+ {
+ httpURLConn.setRequestProperty("Proxy-Authorization",
proxyAuth);
+ }
+ }
}
return httpURLConn;
Show replies by date