Package cloud.piranha.micro
Class StaticStreamHandler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- cloud.piranha.micro.StaticStreamHandler
-
public class StaticStreamHandler extends URLStreamHandler
-
-
Constructor Summary
Constructors Constructor Description StaticStreamHandler(String protocol, Map<String,Function<URL,URLConnection>> handlers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URLConnection
openConnection(URL u)
-
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Method Detail
-
openConnection
protected URLConnection openConnection(URL u) throws IOException
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
-