public class Handler
extends java.net.URLStreamHandler
URLStreamHandler for Spring Boot loader JarFiles.JarFile.registerUrlProtocolHandler()| Modifier and Type | Method and Description |
|---|---|
JarFile |
getRootJarFileFromUrl(java.net.URL url) |
protected int |
hashCode(java.net.URL u) |
protected java.net.URLConnection |
openConnection(java.net.URL url) |
protected void |
parseURL(java.net.URL context,
java.lang.String spec,
int start,
int limit) |
protected boolean |
sameFile(java.net.URL u1,
java.net.URL u2) |
static void |
setUseFastConnectionExceptions(boolean useFastConnectionExceptions)
Set if a generic static exception can be thrown when a URL cannot be connected.
|
public Handler()
public Handler(JarFile jarFile)
protected java.net.URLConnection openConnection(java.net.URL url)
throws java.io.IOException
openConnection in class java.net.URLStreamHandlerjava.io.IOExceptionprotected void parseURL(java.net.URL context,
java.lang.String spec,
int start,
int limit)
parseURL in class java.net.URLStreamHandlerprotected int hashCode(java.net.URL u)
hashCode in class java.net.URLStreamHandlerprotected boolean sameFile(java.net.URL u1,
java.net.URL u2)
sameFile in class java.net.URLStreamHandlerpublic JarFile getRootJarFileFromUrl(java.net.URL url) throws java.io.IOException
java.io.IOExceptionpublic static void setUseFastConnectionExceptions(boolean useFastConnectionExceptions)
useFastConnectionExceptions - if fast connection exceptions can be used.