java.lang.Object
java.net.URLStreamHandler
org.springframework.boot.loader.net.protocol.nested.Handler

public class Handler extends URLStreamHandler
URLStreamHandler to support nested: URLs. See NestedLocation for details of the URL format.
Since:
3.2.0
Author:
Phillip Webb
  • Constructor Details

    • Handler

      public Handler()
  • Method Details

    • openConnection

      protected URLConnection openConnection(URL url) throws IOException
      Specified by:
      openConnection in class URLStreamHandler
      Throws:
      IOException
    • assertUrlIsNotMalformed

      public static void assertUrlIsNotMalformed(String url)
      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.