Class StaticStreamHandler

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

public class StaticStreamHandler
extends java.net.URLStreamHandler
  • 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)  
  • 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)
  • 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