public class Handler extends URLStreamHandler
URLStreamHandler
for Spring Boot loader JarFile
s.JarFile.registerUrlProtocolHandler()
Modifier and Type | Method and Description |
---|---|
JarFile |
getRootJarFileFromUrl(URL url) |
protected URLConnection |
openConnection(URL url) |
protected void |
parseURL(URL context,
String spec,
int start,
int limit) |
protected boolean |
sameFile(URL u1,
URL u2) |
static void |
setUseFastConnectionExceptions(boolean useFastConnectionExceptions)
Set if a generic static exception can be thrown when a URL cannot be connected.
|
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, setURL, setURL, toExternalForm
public Handler()
public Handler(JarFile jarFile)
protected URLConnection openConnection(URL url) throws IOException
openConnection
in class URLStreamHandler
IOException
protected void parseURL(URL context, String spec, int start, int limit)
parseURL
in class URLStreamHandler
protected boolean sameFile(URL u1, URL u2)
sameFile
in class URLStreamHandler
public JarFile getRootJarFileFromUrl(URL url) throws IOException
IOException
public static void setUseFastConnectionExceptions(boolean useFastConnectionExceptions)
useFastConnectionExceptions
- if fast connection exceptions can be used.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.