Class Handler
java.lang.Object
java.net.URLStreamHandler
org.springframework.boot.loader.net.protocol.nested.Handler
- Since:
- 3.2.0
- Author:
- Phillip Webb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Assert that the specified URL is a valid "nested" URL.static void
Clear any internal caches.protected InetAddress
getHostAddress
(URL url) protected URLConnection
openConnection
(URL url) Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
Constructor Details
-
Handler
public Handler()
-
-
Method Details
-
getHostAddress
- Overrides:
getHostAddress
in classURLStreamHandler
-
openConnection
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
assertUrlIsNotMalformed
Assert that the specified URL is a valid "nested" URL.- Parameters:
url
- the URL to check
-
clearCache
public static void clearCache()Clear any internal caches.
-