public class Handler extends URLStreamHandler
URLStreamHandler for Spring Boot loader JarFiles.JarFile.registerUrlProtocolHandler()| 限定符和类型 | 字段和说明 |
|---|---|
static String |
PROTOCOL_HANDLER |
| 限定符和类型 | 方法和说明 |
|---|---|
JarFile |
getRootJarFileFromUrl(URL url) |
protected int |
hashCode(URL u) |
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, hostsEqual, openConnection, setURL, setURL, toExternalFormpublic Handler()
public Handler(JarFile jarFile)
protected URLConnection openConnection(URL url) throws IOException
openConnection 在类中 URLStreamHandlerIOExceptionprotected void parseURL(URL context, String spec, int start, int limit)
parseURL 在类中 URLStreamHandlerprotected int hashCode(URL u)
hashCode 在类中 URLStreamHandlerprotected boolean sameFile(URL u1, URL u2)
sameFile 在类中 URLStreamHandlerpublic JarFile getRootJarFileFromUrl(URL url) throws IOException
IOExceptionpublic static void setUseFastConnectionExceptions(boolean useFastConnectionExceptions)
useFastConnectionExceptions - if fast connection exceptions can be used.Copyright © 2022. All rights reserved.