|
|
|
|
@ -17,6 +17,7 @@
@@ -17,6 +17,7 @@
|
|
|
|
|
package org.springframework.boot.loader.net.protocol.nested; |
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.net.InetAddress; |
|
|
|
|
import java.net.URL; |
|
|
|
|
import java.net.URLConnection; |
|
|
|
|
import java.net.URLStreamHandler; |
|
|
|
|
@ -35,6 +36,13 @@ public class Handler extends URLStreamHandler {
@@ -35,6 +36,13 @@ public class Handler extends URLStreamHandler {
|
|
|
|
|
|
|
|
|
|
private static final String PREFIX = "nested:"; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected InetAddress getHostAddress(URL url) { |
|
|
|
|
// Some Windows users have reported that calls to java.net.URL.getHostAddress()
|
|
|
|
|
// can be slow. Since we only deal with local files we always return null here.
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected URLConnection openConnection(URL url) throws IOException { |
|
|
|
|
return new NestedUrlConnection(url); |
|
|
|
|
|