Class GlobalArchiveStreamHandler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- cloud.piranha.resource.shrinkwrap.GlobalArchiveStreamHandler
-
public class GlobalArchiveStreamHandler extends URLStreamHandler
Stream handler for theshrinkwrap
protocol (urls starting withshrinkwrap://
).This is for URLs that don't have the embedded stream handler, which is for instance the case when resource URLs obtained from Piranha Micro are converted to external string form and used to create a new URL.
- Author:
- Arjan Tijms
-
-
Constructor Summary
Constructors Constructor Description GlobalArchiveStreamHandler(WebApplication webApplication)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLConnection
connect(URL requestedUrl)
URLConnection
openConnection(URL requestedUrl)
-
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Constructor Detail
-
GlobalArchiveStreamHandler
public GlobalArchiveStreamHandler(WebApplication webApplication)
-
-
Method Detail
-
connect
public URLConnection connect(URL requestedUrl)
-
openConnection
public URLConnection openConnection(URL requestedUrl) throws IOException
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
-