Class StaticStreamHandler

java.lang.Object
java.net.URLStreamHandler
cloud.piranha.micro.loader.StaticStreamHandler

public class StaticStreamHandler
extends java.net.URLStreamHandler
A static URL stream handler.
Author:
Manfred Riem ([email protected])
  • Constructor Summary

    Constructors
    Constructor Description
    StaticStreamHandler​(java.lang.String protocol, java.util.Map<java.lang.String,​java.util.function.Function<java.net.URL,​java.net.URLConnection>> handlers)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    protected java.net.URLConnection openConnection​(java.net.URL u)  

    Methods inherited from class java.net.URLStreamHandler

    equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StaticStreamHandler

      public StaticStreamHandler​(java.lang.String protocol, java.util.Map<java.lang.String,​java.util.function.Function<java.net.URL,​java.net.URLConnection>> handlers)
      Constructor.
      Parameters:
      protocol - the protocol.
      handlers - the handlers.
  • Method Details

    • openConnection

      protected java.net.URLConnection openConnection​(java.net.URL u) throws java.io.IOException
      Specified by:
      openConnection in class java.net.URLStreamHandler
      Throws:
      java.io.IOException