felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject svn commit: r582690 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java
Date Sun, 07 Oct 2007 22:03:12 GMT
Author: pauls
Date: Sun Oct  7 15:03:12 2007
New Revision: 582690

URL: http://svn.apache.org/viewvc?rev=582690&view=rev
Log:
Overwrite the URLStreamHandler.getHostAddress(URL) in the ExtensionManager to immediately
return null to prevent DNS lookup (FELIX-388).

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java?rev=582690&r1=582689&r2=582690&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java Sun
Oct  7 15:03:12 2007
@@ -19,6 +19,7 @@
 package org.apache.felix.framework;
 
 import java.io.IOException;
+import java.net.InetAddress; 
 import java.io.InputStream;
 import java.net.URL;
 import java.net.URLConnection;
@@ -524,6 +525,12 @@
         }
 
         throw new IOException("Resource not provided by any extension!");
+    }
+
+    protected InetAddress getHostAddress(URL u) 
+    { 
+        // the extension URLs do not address real hosts 
+        return null; 
     }
 
     private synchronized void addExtension(Object source, Bundle extension)



Mime
View raw message