[jboss-remoting-commits] JBoss Remoting SVN: r3851 - remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Wed Apr 2 00:23:27 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-04-02 00:23:27 -0400 (Wed, 02 Apr 2008)
New Revision: 3851

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
Log:
JBREM-934: Use SystemUtility.getSystemProperty().

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java	2008-04-02 04:22:05 UTC (rev 3850)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java	2008-04-02 04:23:27 UTC (rev 3851)
@@ -32,7 +32,6 @@
 import org.jboss.remoting.RemoteClientInvoker;
 import org.jboss.remoting.ServerInvoker;
 import org.jboss.remoting.Version;
-import org.jboss.remoting.loading.ClassByteClassLoader;
 import org.jboss.remoting.marshal.MarshalFactory;
 import org.jboss.remoting.marshal.Marshaller;
 import org.jboss.remoting.marshal.UnMarshaller;
@@ -44,6 +43,7 @@
 import org.jboss.remoting.marshal.serializable.SerializableUnMarshaller;
 import org.jboss.remoting.serialization.ClassLoaderUtility;
 import org.jboss.remoting.transport.web.WebUtil;
+import org.jboss.remoting.util.SystemUtility;
 import org.jboss.util.Base64;
 import org.jboss.util.threadpool.BasicThreadPool;
 import org.jboss.util.threadpool.BlockingMode;
@@ -829,7 +829,7 @@
       }
       if (username == null || username.length() == 0)
       {
-         username = System.getProperty("http.proxy.username");
+         username = SystemUtility.getSystemProperty("http.proxy.username");
       }
       if (metadata != null)
       {
@@ -837,7 +837,7 @@
       }
       if (password == null)
       {
-         password = System.getProperty("http.proxy.password");
+         password = SystemUtility.getSystemProperty("http.proxy.password");
       }
 
       if (username != null && password != null)
@@ -868,20 +868,7 @@
       }
       if (username == null || username.length() == 0)
       {
-         try
-         {
-            username = (String)AccessController.doPrivileged( new PrivilegedExceptionAction()
-            {
-               public Object run() throws Exception
-               {
-                  return System.getProperty("http.basic.username");
-               }
-            });
-         }
-         catch (PrivilegedActionException e)
-         {
-            log.debug("error", e.getCause());
-         }
+         username = SystemUtility.getSystemProperty("http.basic.username");
       }
       if (metadata != null)
       {
@@ -889,20 +876,7 @@
       }
       if (password == null)
       {
-         try
-         {
-            password = (String)AccessController.doPrivileged( new PrivilegedExceptionAction()
-            {
-               public Object run() throws Exception
-               {
-                  return System.getProperty("http.basic.password");
-               }
-            });
-         }
-         catch (PrivilegedActionException e)
-         {
-            log.debug("error", e.getCause());
-         }
+         password = SystemUtility.getSystemProperty("http.basic.password");
       }
 
       if (username != null && password != null)




More information about the jboss-remoting-commits mailing list