Class GlobalArchiveStreamHandler
java.lang.Object
java.net.URLStreamHandler
cloud.piranha.resource.shrinkwrap.GlobalArchiveStreamHandler
Stream handler for the
shrinkwrap
protocol (urls starting with
shrinkwrap://
).
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
-
Method Summary
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
Constructor Details
-
GlobalArchiveStreamHandler
Constructror.- Parameters:
webApplication
- the web application.
-
-
Method Details
-
connect
Connect to the URL.- Parameters:
requestedUrl
- the requested URL.- Returns:
- the URL connection.
-
openConnection
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-